Definition at line 5 of file facade.py.
 
◆ __init__()
      
        
          | go4py.internals.facade.Facade.__init__ | ( |  | self, | 
        
          |  |  |  | modulename ) | 
      
 
Replaces a module with an instance of a types.ModuleType-based class
modulename is probably given by __name__ in that module
Example:
    @Facade(__name__)
    class AnInteriorClass(ModuleType):
        pass
 
Definition at line 7 of file facade.py.
 
 
◆ __call__()
      
        
          | go4py.internals.facade.Facade.__call__ | ( |  | self, | 
        
          |  |  |  | Interior ) | 
      
 
Replace current module with an instance of Interior in sys.modules
Update the globals of this instance from the globals of the module
Keep a reference to the overwritten "scaffold" module to avoid GC
cf. https://mail.python.org/pipermail/python-ideas/2012-May/014969.html
 
Definition at line 19 of file facade.py.
References modulename.
 
 
◆ modulename
      
        
          | go4py.internals.facade.Facade.modulename = modulename | 
      
 
 
The documentation for this class was generated from the following file: