Lists - shmolyneaux/SquareJam GitHub Wiki
List inherits from PStorBaseObject. It has be designed to replicate the functionality of standard python lists, but on a persistent database.
The class contains the following methods:
__init____len____getitem____setitem__getcontents__str____repr__append__add____delitem__extendcountindexinsetpopremovereversesort__contains____iter____eq____ne____gt____ge____lt____le__
Members
All of the names of the above methods are added to __reserved__ from PStorBaseObject except for __init__ (though this may be an error).
Methods
Except for the listed methods below, List methods should behave the same way as standard dictionaries. See the python documentation for detail on methods that have not been listed below.
_init_( connection, key )
- creates a reference object that refers to a mutable object in the persistent storage system.
getcontents()
- returns a list containing the
__key__of each attribute.
_str_()
- returns
List(%s)where%sisrepr(self.__key__).
_repr_()
- functional the same as
__str__.