Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
codeop.Compile Class Reference

List of all members.

Public Member Functions

def __init__
def __call__

Public Attributes


Detailed Description

Instances of this class behave much like the built-in compile
function, but if one is used to compile text containing a future
statement, it "remembers" and compiles all subsequent program texts
with the statement in force.

Definition at line 124 of file

Constructor & Destructor Documentation

def codeop.Compile.__init__ (   self)

Definition at line 129 of file

00130     def __init__(self):
00131         self.flags = PyCF_DONT_IMPLY_DEDENT

Here is the caller graph for this function:

Member Function Documentation

def codeop.Compile.__call__ (   self,

Definition at line 132 of file

00133     def __call__(self, source, filename, symbol):
00134         codeob = compile(source, filename, symbol, self.flags, 1)
00135         for feature in _features:
00136             if codeob.co_flags & feature.compiler_flag:
00137                 self.flags |= feature.compiler_flag
00138         return codeob

Here is the call graph for this function:

Member Data Documentation

Definition at line 130 of file

The documentation for this class was generated from the following file: