Package EasyExtend :: Module eecompiler :: Class EEModule
[hide private]
[frames] | no frames]

Class EEModule



     object --+    
              |    
eecommon.EEShow --+
                  |
                 EEModule

Class used to represent a module object of the fiber.

Instance Methods [hide private]
 
__init__(self, tree, filename, fiber)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
preprocess(self, **kwd)
 
compile(self, **kwd)
Create Python code object from transformed extension language parse tree.
 
dump(self, f)
Dump Python code-object into a binary file
 
getPycHeader(self)

Inherited from eecommon.EEShow: maybe_show_cst_after, maybe_show_cst_before, maybe_show_python, maybe_show_token

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  mode = 'exec'
  MAGIC = 'm\xf2\r\n'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, tree, filename, fiber)
(Constructor)

 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Parameters:
  • tree - parse tree of the extension language
  • filename - filename of the compiled module
  • fiber - Python module object containing relevant ext-language definitions.
Overrides: object.__init__