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.

作者 serhiy.storchaka
收信人 arigo, eric.snow, mark.dickinson, serhiy.storchaka, zach.ware
日期 2013-08-18.07:38:44
SpamBayes Score -1.0
Marked as misclassified
Message-id <1376811525.07.0.106497210872.issue18712@psf.upfronthosting.co.za>
In-reply-to
内容
> 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.
历史
日期 用户 动作 参数
2013-08-18 07:38:45serhiy.storchaka修改recipients: + serhiy.storchaka, arigo, mark.dickinson, eric.snow, zach.ware
2013-08-18 07:38:45serhiy.storchaka修改messageid: <1376811525.07.0.106497210872.issue18712@psf.upfronthosting.co.za>
2013-08-18 07:38:45serhiy.storchaka链接issue18712 messages
2013-08-18 07:38:44serhiy.storchaka创建