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

All Samples(10)  |  Call(4)  |  Derive(0)  |  Import(6)

src/p/y/PyContracts-1.6.0/src/contracts/library/suggester.py   PyContracts(Download)
import operator
 
from ..syntax import (Combine, Word, alphas, alphanums, oneOf,
                      ParseSyntaxException, ParseException)
 
            else:
                msg += '\nI know: %r.\n' % (options)
        pe = ParseException(s, loc, msg, pattern)
        raise ParseSyntaxException(pe)
 

src/c/o/contracts-HEAD/src/contracts/library/suggester.py   contracts(Download)
import operator
 
from ..syntax import (Combine, Word, alphas, alphanums, oneOf,
                      ParseSyntaxException, ParseException)
 
            else:
                msg += '\nI know: %r.\n' % (options)
        pe = ParseException(s, loc, msg, pattern)
        raise ParseSyntaxException(pe)
 

src/p/y/PyContracts-1.6.0/src/contracts/library/extensions.py   PyContracts(Download)
from ..interface import Contract, ContractNotRespected, describe_value
from ..syntax import (Combine, Word, W, alphas, alphanums, oneOf,
                      ParseException)
 
 
    def parse_action(s, loc, tokens):
        identifier = tokens[0]
 
        if not identifier in Extension.registrar:
            raise ParseException('Not matching %r' % identifier)

src/c/o/contracts-HEAD/src/contracts/library/extensions.py   contracts(Download)
from ..interface import Contract, ContractNotRespected, describe_value
from ..syntax import (Combine, Word, W, alphas, alphanums, oneOf,
                      ParseException)
 
 
    def parse_action(s, loc, tokens):
        identifier = tokens[0]
 
        if not identifier in Extension.registrar:
            raise ParseException('Not matching %r' % identifier)

src/p/y/PyContracts-1.6.0/src/contracts/main.py   PyContracts(Download)
                      SeparateContext)
from .library.extensions import CheckCallableWithSelf
from .syntax import contract_expression, ParseException, ParseFatalException
import inspect
import sys

src/c/o/contracts-HEAD/src/contracts/main.py   contracts(Download)
                      SeparateContext)
from .library.extensions import CheckCallableWithSelf
from .syntax import contract_expression, ParseException, ParseFatalException
import inspect
import sys