[Python-Dev] r87445 - python/branches/py3k/Lib/numbers.py (original) (raw)

Antoine Pitrou solipsis at pitrou.net
Thu Dec 23 20:55:28 CET 2010


On Thu, 23 Dec 2010 19:41:33 +0100 (CET) eric.araujo <python-checkins at python.org> wrote:

def index(self): - """index(self)""" + """someobject[self]"""

This is misleading as to what the method actually does, as you can read in the implementation:

return int(self)



More information about the Python-Dev mailing list