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: <1390447555.29.0.339868893083.issue20185@psf.upfronthosting.co.za> |
2014-01-23 03:25:55 | vajrasky | link | issue20185 messages |
2014-01-23 03:25:54 | vajrasky | create | |
|