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 and BaseClass and is itself an abstract class requiring concrete implementations of __item_class__ and todict.

Constructor takes additional variable arguments and variable keyword arguments.

Parameters:initlist ({None, sequence, UserList}, optional) – if not None, then a list or an instance of UserList

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.