Package pology :: Module monitored :: Class Monset

Class Monset

object --+    
         |    
 Monitored --+
             |
            Monset

Monitored set.

Instance Methods
 
__init__(self, st=None)
Create a monitored set from a sequence.
 
__repr__(self)
repr(x)
 
__str__(self)
str(x)
 
__len__(self)
 
__iter__(self)
 
__eq__(self, other)
 
__ne__(self, other)
 
__contains__(self, val)
 
add(self, val)
 
remove(self, val)
 
items(self)

Inherited from Monitored: __getattr__, __setattr__, assert_spec_getattr, assert_spec_getitem, assert_spec_init, assert_spec_setattr, assert_spec_setitem, data

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

Properties

Inherited from object: __class__

Method Details

__init__(self, st=None)
(Constructor)

 

Create a monitored set from a sequence.

All methods behave as their namesakes in standard set.

Parameters:
  • st (any convertible into list by list()) - sequence of elements
Overrides: object.__init__

__repr__(self)
(Representation operator)

 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__str__(self)
(Informal representation operator)

 

str(x)

Overrides: object.__str__
(inherited documentation)

__eq__(self, other)
(Equality operator)

 
Overrides: Monitored.__eq__

__ne__(self, other)

 
Overrides: Monitored.__ne__