Message195547
| 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 |
<1376811525.07.0.106497210872.issue18712@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> 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. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年08月18日 07:38:45 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, arigo, mark.dickinson, eric.snow, zach.ware |
| 2013年08月18日 07:38:45 | serhiy.storchaka | set | messageid: <1376811525.07.0.106497210872.issue18712@psf.upfronthosting.co.za> |
| 2013年08月18日 07:38:45 | serhiy.storchaka | link | issue18712 messages |
| 2013年08月18日 07:38:44 | serhiy.storchaka | create |
|