__init__(self,
source,
filename=None,
lineno=-1,
lookup=' strict ' ,
xform=None)
(Constructor)
|
|
Create the code object, either from a string, or from an AST node.
- Parameters:
source - either a string containing the source code, or an AST
node
filename - the (preferably absolute) name of the file containing
the code
lineno - the number of the line on which the code was found
lookup - the lookup class that defines how variables are looked
up in the context; can be either "strict" (the default),
"lenient", or a custom lookup class
xform - the AST transformer that should be applied to the code;
if None , the appropriate transformation is chosen
depending on the mode
- Overrides:
object.__init__
|