Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(32)  |  Call(24)  |  Derive(0)  |  Import(8)

src/p/y/PyContracts-1.6.0/src/contracts/library/array.py   PyContracts(Download)
from ..interface import Contract, ContractNotRespected, describe_type
from ..pyparsing_utils import myOperatorPrecedence
from ..syntax import (add_contract, W, contract_expression, O, S, rvalue,
    simple_contract, ZeroOrMore, Literal, MatchFirst, opAssoc, FollowedBy, NotAny,
    Keyword, add_keyword, Word)
    if glyph == '!=':
        # special case: ! must be followed by =
        glyph_expression = Literal('!') - Literal('=')
        glyph_expression.setName('!=')
    else:
        glyph_expression = Literal(glyph)
 
    expr = glyph_expression('glyph') - rvalue('rvalue')

src/c/o/contracts-HEAD/src/contracts/library/array.py   contracts(Download)
from ..interface import Contract, ContractNotRespected, describe_type
from ..pyparsing_utils import myOperatorPrecedence
from ..syntax import (add_contract, W, contract_expression, O, S, rvalue,
    simple_contract, ZeroOrMore, Literal, MatchFirst, opAssoc, FollowedBy, NotAny,
    Keyword, add_keyword, Word)
    if glyph == '!=':
        # special case: ! must be followed by =
        glyph_expression = Literal('!') - Literal('=')
        glyph_expression.setName('!=')
    else:
        glyph_expression = Literal(glyph)
 
    expr = glyph_expression('glyph') - rvalue('rvalue')

src/p/y/PyContracts-1.6.0/src/contracts/library/comparison.py   PyContracts(Download)
from ..interface import Contract, ContractNotRespected, RValue
from ..syntax import W, add_contract, O, Literal, isnumber, rvalue
import math
from contracts.interface import eval_in_context
 
    if glyph == '!=':
        # special case: ! must be followed by =
        glyph_expression = Literal('!') - Literal('=')
        glyph_expression.setName('!=')
    else:
        glyph_expression = Literal(glyph)
 
    expr = O(rvalue('expr1')) + glyph_expression('glyph') - rvalue('expr2')

src/c/o/contracts-HEAD/src/contracts/library/comparison.py   contracts(Download)
from ..interface import Contract, ContractNotRespected, RValue
from ..syntax import W, add_contract, O, Literal, isnumber, rvalue
import math
from contracts.interface import eval_in_context
 
    if glyph == '!=':
        # special case: ! must be followed by =
        glyph_expression = Literal('!') - Literal('=')
        glyph_expression.setName('!=')
    else:
        glyph_expression = Literal(glyph)
 
    expr = O(rvalue('expr1')) + glyph_expression('glyph') - rvalue('expr2')

src/p/y/PyContracts-1.6.0/src/contracts/library/separate_context.py   PyContracts(Download)
from ..interface import Contract
from ..syntax import add_contract, W, contract_expression, Literal, Group
 
 
class SeparateContext(Contract):
 
 
sepcon = (Group(Literal('$') - Literal('(') -
                contract_expression('child') - Literal(')')))
sepcon.setParseAction(SeparateContext.parse_action)

src/c/o/contracts-HEAD/src/contracts/library/separate_context.py   contracts(Download)
from ..interface import Contract
from ..syntax import add_contract, W, contract_expression, Literal, Group
 
 
class SeparateContext(Contract):
 
 
sepcon = (Group(Literal('$') - Literal('(') -
                contract_expression('child') - Literal(')')))
sepcon.setParseAction(SeparateContext.parse_action)

src/p/y/PyContracts-1.6.0/src/contracts/library/dummy.py   PyContracts(Download)
from ..interface import Contract, ContractNotRespected
from ..syntax import add_contract, W, Literal
 
 
class Any(Contract):

src/c/o/contracts-HEAD/src/contracts/library/dummy.py   contracts(Download)
from ..interface import Contract, ContractNotRespected
from ..syntax import add_contract, W, Literal
 
 
class Any(Contract):