|
def | __new__ (cls, initial=()) |
|
def | set (self, key, value) |
|
def | append (self, val) |
|
def | extend (self, it) |
|
def | serialize (self, format=None) |
|
def | __reduce__ (self) |
|
def | __repr__ (self) |
|
def | evolver (self) |
|
def | __new__ (cls, count, shift, root, tail) |
|
def | __len__ (self) |
|
def | __getitem__ (self, index) |
|
def | __add__ (self, other) |
|
def | __str__ (self) |
|
def | __iter__ (self) |
|
def | __ne__ (self, other) |
|
def | __eq__ (self, other) |
|
def | __gt__ (self, other) |
|
def | __lt__ (self, other) |
|
def | __ge__ (self, other) |
|
def | __le__ (self, other) |
|
def | __mul__ (self, times) |
|
def | tolist (self) |
|
def | __hash__ (self) |
|
def | transform (self, *transformations) |
|
def | mset (self, *args) |
|
def | index (self, value, *args, **kwargs) |
|
def | count (self, value) |
|
def | delete (self, index, stop=None) |
|
def | remove (self, value) |
|
def | create (cls, source_data, _factory_fields=None) |
|
def | __new__ (mcs, name, bases, dct) |
|
A CheckedPVector is a PVector which allows specifying type and invariant checks.
>>> class Positives(CheckedPVector):
... __type__ = (int, float)
... __invariant__ = lambda n: (n >= 0, 'Negative')
...
>>> Positives([1, 2, 3])
Positives([1, 2, 3])