Message260777
> You need to call `x.__len__()` explicitly.
Ah ok :-) I didn't read carefully the initial message.
Attached patch should fix the issue on Python 2.7. It uses the same function than builtin_len() to cast the C Py_ssize_t to a Python int or long. |
|
Date |
User |
Action |
Args |
2016-02-24 09:24:57 | vstinner | set | recipients:
+ vstinner, georg.brandl, paul.moore, mark.dickinson, pitrou, tim.golden, zach.ware, steve.dower, RazerM, Dave Hibbitts |
2016-02-24 09:24:57 | vstinner | set | messageid: <1456305897.73.0.441257622167.issue26423@psf.upfronthosting.co.za> |
2016-02-24 09:24:57 | vstinner | link | issue26423 messages |
2016-02-24 09:24:57 | vstinner | create | |
|