LookupError is the mother of both KeyError and IndexError, which is used by some containers.
"Index" seems to refer to an incremental integer key.
In py2store containers though, keys are meant have (unless otherwise specified) a looser semantic. They can actually be anything (even a non-hashable) that references some content.
Therefore, it may be better, at least at the base(r) levels that we use LookupError instead of what is used now: KeyError.
LookupError
is the mother of bothKeyError
andIndexError
, which is used by some containers."
Index
" seems to refer to an incremental integer key.In py2store containers though, keys are meant have (unless otherwise specified) a looser semantic. They can actually be anything (even a non-hashable) that references some content.
Therefore, it may be better, at least at the base(r) levels that we use
LookupError
instead of what is used now:KeyError
.