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.

Author serhiy.storchaka
Recipients arigo, eric.snow, mark.dickinson, serhiy.storchaka, zach.ware
Date 2013-08-18.07:38:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> For completeness, can you post one line saying why the much simpler solution "range(a).stop" is not accepted?

Because it is implementation detail. The range() function if it will be implemented in Python needs operator.index().

The main purpose of adding Python implementation of the operator module was to provide an implementation which can be used in alternative Python implementations (e.g. PyPy). The CPython itself doesn't use it. And now I doubt that such complicated implementation will be helpful.

Perhaps we need a builtin which exposes _PyType_Lookup() at Python level.
Date User Action Args
2013-08-18 07:38:45serhiy.storchakasetrecipients: + serhiy.storchaka, arigo, mark.dickinson, eric.snow, zach.ware
2013-08-18 07:38:45serhiy.storchakasetmessageid: <>
2013-08-18 07:38:45serhiy.storchakalinkissue18712 messages
2013-08-18 07:38:44serhiy.storchakacreate