April 2024 - This site, and Kamaelia are being updated. There is significant work needed, and PRs are welcome.

Axon.Box.nullsink

For examples and more explanations, see the module level docs.


class nullsink(object)

nullsink() -> new nullsink object

A dummy piece of storage for postboxes, that behaves a bit like a list.

Discards data given to it by calling append() and always reports that it contains no items.

Methods defined here

__init__(self)

x.__init__(...) initializes x; see x.__class__.__doc__ for signature.

__len__(self)

Returns number of items in the list (always zero)

__repr__(self)

append(self, data)

Append item to the list - though actually it just gets discarded.

pop(self, index)

Returns an item from the list (always raises IndexError

setShowTransit(self, showtransit, tag)

Set showTransit to True to cause debugging output whenever a message is delivered to this storage. The tag can be anything you want to identify this occurrence.

Feedback

Got a problem with the documentation? Something unclear that could be clearer? Want to help improve it? Constructive criticism is very welcome - especially if you can suggest a better rewording!

Please leave you feedback here in reply to the documentation thread in the Kamaelia blog.

-- Automatic documentation generator, 09 Dec 2009 at 04:00:25 UTC/GMT