Package lepl :: Package core :: Module manager :: Class GeneratorRef
[hide private]
[frames] | no frames]

Class GeneratorRef

source code


This contains the weak reference to the GeneratorWrapper and is stored in the GC priority queue.
Instance Methods [hide private]
 
__init__(self, generator, epoch)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__lt__(self, other) source code
 
__eq__(self, other) source code
 
__hash__(self)
hash(x)
source code
 
generator(self)
Provide access to the generator (or None, if it has been GCed).
source code
 
pop(self, epoch)
When no longer used, safe epoch and decrement count.
source code
 
push(self)
Added to stack, so increment count.
source code
 
deletable(self, epoch)
Check we can delete the wrapper.
source code
 
close(self)
This terminates the enclosed generator.
source code
 
__str__(self)
str(x)
source code
 
__repr__(self)
repr(x)
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, generator, epoch)
(Constructor)

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

__hash__(self)
(Hashing function)

source code 
hash(x)
Overrides: object.__hash__
(inherited documentation)

generator(self)

source code 
Provide access to the generator (or None, if it has been GCed).
Decorators:
  • @property

__str__(self)
(Informal representation operator)

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

__repr__(self)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)