This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Lists do have __getitem__ method
Type: Stage:
Components: None Versions:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: kgerber, rhettinger
Priority: normal Keywords:

Created on 2002-04-26 00:41 by kgerber, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (3)
msg10535 - (view) Author: Kelly Gerber (kgerber) Date: 2002-04-26 00:41
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?
msg10536 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2002-05-05 15:57
Logged In: YES 
user_id=80475

Agreed.
Submitted documentation patch: www.python.org/sf/552468
msg10537 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2002-05-12 03:23
Logged In: YES 
user_id=80475

Fixed in Doc/ref/ref3.tex version 1.88.
Bug closed.
History
Date User Action Args
2022-04-10 16:05:16adminsetgithub: 36500
2002-04-26 00:41:59kgerbercreate