[Python-Dev] [Python-checkins] r87445 - python/branches/py3k/Lib/numbers.py (original) (raw)
Mark Dickinson dickinsm at gmail.com
Mon Dec 27 11:19:20 CET 2010
- Previous message: [Python-Dev] [Python-checkins] r87445 - python/branches/py3k/Lib/numbers.py
- Next message: [Python-Dev] Summary of Python tracker Issues
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Dec 24, 2010 at 1:08 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:
def index(self): - """index(self)""" + """someobject[self]""" return int(self) Changing the docstring to say "operator.index(self)" would be the clearest solution here.
Agreed. Certainly "someobject[self]" isn't right.
(There's also a question about whether index should really be defaulting to int, but that's another issue...)
Mark
- Previous message: [Python-Dev] [Python-checkins] r87445 - python/branches/py3k/Lib/numbers.py
- Next message: [Python-Dev] Summary of Python tracker Issues
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]