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

noreply@sourceforge.net noreply@sourceforge.net
Sat, 11 May 2002 20:23:47 -0700


Bugs item #548874, was opened at 2002-04-25 19:41
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=548874&group_id=5470

Category: None
Group: None
Status: Closed
Resolution: None
Priority: 5
Submitted By: Kelly Gerber (kgerber)
Assigned to: Raymond Hettinger (rhettinger)
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-11 22:23

Message:
Logged In: YES 
user_id=80475

Fixed in Doc/ref/ref3.tex version 1.88.
Bug closed.

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

Comment By: Raymond Hettinger (rhettinger)
Date: 2002-05-05 10: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