Did I find the right examples for you? yes no

All Samples(36)  |  Call(6)  |  Derive(0)  |  Import(30)

        def parseFile(path):
    f = open(path, "U")
    # XXX The parser API tolerates files without a trailing newline,
    # but not strings without a trailing newline.  Always add an extra
    # newline to the file contents, since we're going through the string
    # version of the API.
    src = f.read() + "\n"
    f.close()
    return parse(src)
        


src/c/h/cheesecake-0.6.1/cheesecake/model.py   Cheesecake(Download)
import sets
 
from compiler.transformer import parse, parseFile
from compiler.visitor import walk
 
        isf = ImportStarFinder(system, mod.fullName())
        try:
            ast = parseFile(mod.filepath)
        except (SyntaxError, ValueError):
            system.warning("cannot parse", mod.filepath)
        system.push(mod.parent)
        try:
            ast = parseFile(mod.filepath)
        except (SyntaxError, ValueError):
            system.warning("cannot parse", mod.filepath)
        for fname in argv:
            modname = os.path.splitext(os.path.basename(fname))[0] # XXX!
            processModuleAst(parseFile(fname), modname, system)
        system.report()
 

src/c/h/cheesecake-HEAD/cheesecake/model.py   cheesecake(Download)
import __builtin__
 
from compiler.transformer import parse, parseFile
from compiler.visitor import walk
 
        isf = ImportStarFinder(system, mod.fullName())
        try:
            ast = parseFile(mod.filepath)
        except (SyntaxError, ValueError):
            system.warning("cannot parse", mod.filepath)
        system.push(mod.parent)
        try:
            ast = parseFile(mod.filepath)
        except (SyntaxError, ValueError):
            system.warning("cannot parse", mod.filepath)
        for fname in argv:
            modname = os.path.splitext(os.path.basename(fname))[0] # XXX!
            processModuleAst(parseFile(fname), modname, system)
        system.report()
 

src/p/y/pydroid-HEAD/src/pydroid/framework/project_skeleton/libs/python27/lib/python2.7/compiler/__init__.py   pydroid(Download)
              DeprecationWarning, stacklevel=2)
 
from compiler.transformer import parse, parseFile
from compiler.visitor import walk
from compiler.pycodegen import compile, compileFile

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/compiler/__init__.py   main(Download)
              DeprecationWarning, stacklevel=2)
 
from compiler.transformer import parse, parseFile
from compiler.visitor import walk
from compiler.pycodegen import compile, compileFile

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/CPython/27/Lib/compiler/__init__.py   main(Download)
              DeprecationWarning, stacklevel=2)
 
from compiler.transformer import parse, parseFile
from compiler.visitor import walk
from compiler.pycodegen import compile, compileFile

src/l/o/LODGrefine-HEAD/lod2-google-refine/extensions/jython/module/MOD-INF/lib/jython/compiler/__init__.py   LODGrefine(Download)
"""
 
from compiler.transformer import parse, parseFile
from compiler.visitor import walk
from compiler.pycodegen import compile, compileFile

src/o/p/openvault-core-HEAD/hydra-jetty/webapps/media/WEB-INF/lib/Lib/compiler/__init__.py   openvault-core(Download)
"""
 
from compiler.transformer import parse, parseFile
from compiler.visitor import walk
from compiler.pycodegen import compile, compileFile

src/p/l/plexnet-HEAD/third_party/generic/pypy/lib-python/2.5.2/compiler/__init__.py   plexnet(Download)
"""
 
from compiler.transformer import parse, parseFile
from compiler.visitor import walk
from compiler.pycodegen import compile, compileFile

src/s/p/Spherebot-Host-GUI-HEAD/InkscapePortable/App/Inkscape/python/Lib/compiler/__init__.py   Spherebot-Host-GUI(Download)
del warnpy3k
 
from compiler.transformer import parse, parseFile
from compiler.visitor import walk
from compiler.pycodegen import compile, compileFile

src/l/a/landline-server-HEAD/co.whatisuplabs.ldln/lib/play/python/Lib/compiler/__init__.py   landline-server(Download)
del warnpy3k
 
from compiler.transformer import parse, parseFile
from compiler.visitor import walk
from compiler.pycodegen import compile, compileFile

  1 | 2 | 3  Next