Package gyropy :: Module g_mailbox :: Class repbox
[frames] | no frames]

Class repbox

source code


Like a mailbox, but produces infinite copies of whatever value was put in there last. It is created with a value inside.


Note: This needs revision to more closely follow mailbox's methods.

Instance Methods
 
__init__(self, value=None, suicide=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
close(self, e_to_raise=EOF()) source code
 
__len__(self) source code
 
closenow(self, e_to_raise=EOF()) source code
 
put(self, v) source code
 
get(self)
Get an object from the mailbox.
source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self, value=None, suicide=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

get(self)

source code 

Get an object from the mailbox. This will normally block if the mailbox is empty.

Note: If the mailbox is empty, and if a previous call has specified an exception to be raised by readers, raise it.