March 2003
Intermediate to advanced
656 pages
39h 30m
English
__getitem__
__getitem__(self,key)When
x
[
key
]
is accessed (i.e., when container x is
indexed or sliced), Python calls
x
.__getitem__(
key
). All
containers should have __getitem__.