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
    # Check that it was mentioned in the structure
    required_base = required.split('.')[0]
    if not required_base in info_structure[REQUIRES_PARSED]:
        raise Exception('Please specify that you need %r as a dependency '
                        'in the field %r of the %r structure in module %r.' %
    # FIXME: there's a bug in here, should find which base was selected
    if required == required_base:
        options = info_structure[REQUIRES_PARSED][required]
    else:
        options = [required]
                parsed[name] = options
 
    info[REQUIRES_PARSED] = parsed
 
    return info