this repo has no description
at trunk 21 lines 715 B view raw
1# Portions copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com) 2"""Package for compiling Python source code 3 4There are several functions defined at the top level that are imported 5from modules contained in the package. 6 7walk(ast, visitor, verbose=None) 8 Does a pre-order walk over the ast using the visitor instance. 9 See compiler.visitor for details. 10 11compile(source, filename, mode, flags=None, dont_inherit=None) 12 Returns a code object. A replacement for the builtin compile() function. 13 14compileFile(filename) 15 Generates a .pyc file by compiling filename. 16""" 17 18from .pycodegen import compile, compileFile 19from .visitor import walk 20 21__all__ = ("compile", "compileFile", "walk")