Package lepl :: Package core :: Module parser :: Class GeneratorWrapper
[hide private]
[frames] | no frames]

Class GeneratorWrapper

source code


Associate basic info about call that created the generator with the generator itself. This lets us manage resources and provide logging. It is also used by trampoline() to recognise generators that must be evaluated (rather than being treated as normal values).
Instance Methods [hide private]
 
__init__(self, generator, matcher, stream)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__repr__(self)
Lazily evaluated for speed - saves 1/3 of time spent in constructor
source code
 
__str__(self)
str(x)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, generator, matcher, stream)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 
Lazily evaluated for speed - saves 1/3 of time spent in constructor
Overrides: object.__repr__

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)