A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-December/107024.html below:

[Python-Dev] [Python-checkins] r87445 - python/branches/py3k/Lib/numbers.py

[Python-Dev] [Python-checkins] r87445 - python/branches/py3k/Lib/numbers.py [Python-Dev] [Python-checkins] r87445 - python/branches/py3k/Lib/numbers.pyMark Dickinson dickinsm at gmail.com
Mon Dec 27 11:19:20 CET 2010
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
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4