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

All Samples(4)  |  Call(1)  |  Derive(0)  |  Import(3)
Resolve dotted name or object into a python object.

This function resolves a dotted name as a reference to a python object,
returning whatever object happens to live at that path.  If the given
name is not a string, it is returned unchanged.

The optional argument 'package' specifies the package name for relative
imports.  If not specified, only absolute paths will be supported.

        def maybe_resolve_name(name_or_object, package=None):
    """Resolve dotted name or object into a python object.

    This function resolves a dotted name as a reference to a python object,
    returning whatever object happens to live at that path.  If the given
    name is not a string, it is returned unchanged.

    The optional argument 'package' specifies the package name for relative
    imports.  If not specified, only absolute paths will be supported.
    """
    return DottedNameResolver(package).maybe_resolve(name_or_object)
        


src/a/p/appsync-HEAD/appsync/storage/sql.py   appsync(Download)
 
from mozsvc.exceptions import BackendError
from mozsvc.util import round_time, maybe_resolve_name
 
from appsync.cache import Cache, CacheError
            verifier = vep.RemoteVerifier()
        else:
            verifier = maybe_resolve_name(verifier)
            if callable(verifier):
                verifier = verifier()

src/m/o/mozservices-HEAD/mozsvc/tests/test_util.py   mozservices(Download)
import os.path
 
from mozsvc.util import (round_time, resolve_name, maybe_resolve_name,
                         dnslookup)
 

src/m/o/mozsvc-0.7/mozsvc/tests/test_util.py   mozsvc(Download)
import os.path
 
from mozsvc.util import (round_time, resolve_name, maybe_resolve_name,
                         dnslookup)