Package pology :: Module monitored :: Class Monlist

Class Monlist

object --+    
         |    
 Monitored --+
             |
            Monlist

Monitored list.

Instance Methods
 
__init__(self, lst=None)
Create a monitored list from a sequence.
 
__repr__(self)
repr(x)
 
__str__(self)
str(x)
 
__len__(self)
 
__getitem__(self, i)
 
__setitem__(self, i, val)
 
__delitem__(self, i)
 
__eq__(self, other)
 
__ne__(self, other)
 
__add__(self, other)
 
append(self, val)
 
extend(self, other)
 
remove(self, val)
 
pop(self, i=None)
 
insert(self, i, val)

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, lst=None)
(Constructor)

 

Create a monitored list from a sequence.

All methods behave as their namesakes in standard list.

Parameters:
  • lst (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__