wheel (GitLab)
wheel (GHA via
nightly.link
)
A collection of custom lists classes which may be usable.
An analogue of defaultdict
- one can insert elements exceeding the length of the list
. The gaps will be filled with DEFAULT
(which value is 0
by default) - make a subclass to override.
l = SilentList()
l[2] = "a"
l # [None, None, "a"]
Allows to create lists which indexes begin from base
(by default - from 1
, subclass to override).
l = CustomBaseList(
[
"a",
"b",
]
)
l[2] # 'b'