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

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/p/r/procgraph-1.5/src/procgraph/core/import_magic.py   procgraph(Download)
import sys
from types import ModuleType
 
from .visualization import debug
from .constants import PROCGRAPH_INFO_VARIABLE, REQUIRES, REQUIRES_PARSED
        raise Exception('Please specify that you need %r as a dependency '
                        'in the field %r of the %r structure in module %r.' %
                        (required_base, REQUIRES, PROCGRAPH_INFO_VARIABLE,
                         module_name))
 
    ''' Returns dict   name -> list of possible modules '''
    parsed = {}
    if not REQUIRES in info:
        #raise Exception('Please define a field %r in dict %s.%s.' % 
        #                (REQUIRES, module_name, PROCGRAPH_INFO_VARIABLE))
        pass
    else:
        requires = info[REQUIRES]