[Python-bugs-list] [ python-Bugs-548874 ] Lists do have __getitem__ method
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 25 Apr 2002 17:42:00 -0700
Bugs item #548874, was opened at 2002-04-25 17:41
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=548874&group_id=5470
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Kelly Gerber (kgerber)
Assigned to: Nobody/Anonymous (nobody)
Summary: Lists do have __getitem__ method
Initial Comment:
In the Python Reference Manual, Release 2.2.1, section
3.3 Special method names, first paragraph, it says"(The
reverse is not true--if x is a list object,
x.__getitem__(i) is not equivalent to x[i].)"
I do not think this is true any more since Python2.2,
because types now have special methods. They both seem
to produce the same result. Doesn't that make them
equivalent?
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=548874&group_id=5470