Glossary¶
- collection¶
An object which is iterable, has a length and can be tested with ‘in’ operator. Abstract base class defined in
collections.abc.Collection
.- iterable¶
An object which can be iterated over (e.g. in a
for .. in
loop). Abstract base class defined incollections.abc.Iterable
.- mapping¶
An dict-like object which behaves like a collection, can be accessed with indexer syntax (
obj[key]
) and has methodsget()
,keys()
,values()
anditems()
. Abstract base class defined incollections.abc.Mapping
.- path-like¶
A value representing a file system path having the type of
str
or any path object frompathlib
. This library does not acceptbytes
objects.- sequence¶
An list-like object which behaves like a collection, can be accessed with indexer syntax (
obj[index]
) andreversed()
, and has methodsindex()
andcount()
. Abstract base class defined incollections.abc.Sequence
.- mutable set¶
An set-like object which behaves like a collection, defines operators
|=
,|
,&=
,&
,-=
,-
,^=
, and^
; all comparison operators; and methodsadd()
,remove()
,discard()
,clear()
,pop()
, andisdisjoint()
. Abstract base class defined incollections.abc.MutableSet
.