Message208877
Thanks, Serhiy, for the pointer. Now, I am able to convert the method using _PyEval_SliceIndex function.
Sorry, Larry. I used optional groups in __init__ because I didn't know about unspecified.
Here is the updated patch for listobject. One thought, for list.index method, I use this:
stop: slice_index(c_default="Py_SIZE(self)") = unspecified
Then the signature will be:
"index(value, [start=0, [stop=unspecified]])\n"
Somehow I prefer more explanatory signature:
"index(value, [start=0, [stop=size of list]])\n"
Anyway, this is a trivial thing. |
|
| Date |
User |
Action |
Args |
| 2014-01-23 03:25:55 | vajrasky | set | recipients:
+ vajrasky, larry, nadeem.vawda, serhiy.storchaka |
| 2014-01-23 03:25:55 | vajrasky | set | messageid: <[email protected]> |
| 2014-01-23 03:25:55 | vajrasky | link | issue20185 messages |
| 2014-01-23 03:25:54 | vajrasky | create | |
|