__getitem__() in python2.2
uwe.schmitt at procoders.net
Fri Sep 27 16:46:10 CEST 2002
in Python 2.1 one could define
def __getitem__(self, par): print par
If I change to newstyle classes, __getitem__ does not accept
tuples anymore. Is there a good reason for this behaviour ?
Can i simmulate the v2.1 functionality ?? It was quite usefull
to access multidimensional matrices...
Uwe Schmitt Computer science is no more about Computers,
dr.schmitt at procoders.net than astronomy is about telescopes. (Dijkstra)
More information about the Python-list