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

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

            def getsymbol(obj, fmt='%s'):
        return fmt % mapping[type(obj)]
        


src/a/s/astor-0.3/astor/codegen.py   astor(Download)
 
from astor.misc import ExplicitNodeVisitor
from astor.misc import get_boolop, get_binop, get_cmpop, get_unaryop
 
 
    def visit_BoolOp(self, node):
        op = get_boolop(node.op, ' %s ')
        for idx, value in enumerate(node.values):
            self.write(idx and op or '', value)
 

src/a/s/astor-HEAD/astor/codegen.py   astor(Download)
 
from astor.misc import ExplicitNodeVisitor
from astor.misc import get_boolop, get_binop, get_cmpop, get_unaryop
 
 
    def visit_BoolOp(self, node):
        op = get_boolop(node.op, ' %s ')
        for idx, value in enumerate(node.values):
            self.write(idx and op or '', value)
 

src/a/s/astor-0.3/astor/__init__.py   astor(Download)
 
from astor.misc import iter_node, dump, all_symbols, get_anyop
from astor.misc import get_boolop, get_binop, get_cmpop, get_unaryop
from astor.misc import ExplicitNodeVisitor
from astor.misc import parsefile, CodeToAst, codetoast

src/a/s/astor-HEAD/astor/__init__.py   astor(Download)
 
from astor.misc import iter_node, dump, all_symbols, get_anyop
from astor.misc import get_boolop, get_binop, get_cmpop, get_unaryop
from astor.misc import ExplicitNodeVisitor
from astor.misc import parsefile, CodeToAst, codetoast