Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
Compile Class Reference

Public Member Functions

def __init__
 
def __call__
 

Data Fields

 flags
 

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 126 of file codeop.py.

Constructor & Destructor Documentation

def __init__ (   self)

Definition at line 131 of file codeop.py.

132  def __init__(self):
133  self.flags = 0

Member Function Documentation

def __call__ (   self,
  source,
  filename,
  symbol 
)

Definition at line 134 of file codeop.py.

References pre.compile(), and Compile.flags.

135  def __call__(self, source, filename, symbol):
136  codeob = compile(source, filename, symbol, self.flags, 1)
137  for feature in _features:
138  if codeob.co_flags & feature.compiler_flag:
139  self.flags |= feature.compiler_flag
140  return codeob

Field Documentation

flags

Definition at line 132 of file codeop.py.


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