UserList¶
-
class
sknano.core.
UserList
(*args, initlist=None, **kwargs)[source] [edit on github][source]¶ Bases:
collections.abc.MutableSequence
,sknano.core.meta.BaseClass
Modified implementation of
UserList
.Sub-class of both
MutableSequence
andBaseClass
and is itself an abstract class requiring concrete implementations of__item_class__
andtodict
.Constructor takes additional variable arguments and variable keyword arguments.
Parameters: initlist ({None, sequence, UserList
}, optional) – if notNone
, then a list or an instance ofUserList
Attributes
fmtstr
Format string. Methods
append
(item)clear
()copy
()count
(item)extend
(other)index
(item, *args)insert
(i, item)pop
([i])remove
(item)reverse
()sort
(*args, **kwds)todict
()Return dict
of constructor parameters.