Package circuits :: Package core :: Class Event

Class Event

object --+
         |
        Event
Known Subclasses:

Create a new Event Object

Create a new Event Object populating it with the given list of arguments and keyword arguments.

Instance Methods
 
__eq__(x, other)
x==other
 
__getitem__(x, y)
x[y]
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
__repr__(x)
repr(x)

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Class Variables
  target = None
Instance Variables
  channel = None
The channel this Event is bound for
  name
The name of the Event
Properties

Inherited from object: __class__

Method Details

__eq__(x, other)
(Equality operator)

 

x==other

Tests the equality of Event self against Event y. Two Events are considered "equal" iif the name, channel and target are identical as well as their args and kwargs passed.

__getitem__(x, y)
(Indexing operator)

 

x[y]

Get and return data from the Event object requested by "x". If an int is passed to x, the requested argument from self.args is returned index by x. If a str is passed to x, the requested keyword argument from self.kwargs is returned keyed by x. Otherwise a TypeError is raised as nothing else is valid.

__init__(self, *args, **kwargs)
(Constructor)

 

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

Parameters:
  • args (tuple) - list of arguments
  • kwargs (dict) - dct of keyword arguments
Overrides: object.__init__

__repr__(x)
(Representation operator)

 

repr(x)

Overrides: object.__repr__

Instance Variable Details

name

The name of the Event
Get Method:
unreachable.name(self)