March 2003
Intermediate to advanced
656 pages
39h 30m
English
__delitem__
__delitem__(self,key)For a request to unbind an item or slice of
x (typically del
x
[
key
]),
Python will call x
.__delitem__(
key
). A
container x should have __delitem__ only if x is
mutable, so that items (and possibly slices) can be removed.