[Python-bugs-list] [ python-Bugs-548874 ] Lists do have __getitem__ method

noreply@sourceforge.net noreply@sourceforge.net
Sun, 05 May 2002 08:57:26 -0700


Bugs item #548874, was opened at 2002-04-26 00: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?

----------------------------------------------------------------------

Comment By: Raymond Hettinger (rhettinger)
Date: 2002-05-05 15:57

Message:
Logged In: YES 
user_id=80475

Agreed.
Submitted documentation patch: www.python.org/sf/552468

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=548874&group_id=5470