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.

Author vstinner
Recipients Dave Hibbitts, RazerM, georg.brandl, mark.dickinson, paul.moore, pitrou, steve.dower, tim.golden, vstinner, zach.ware
Date 2016-02-24.09:24:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> 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:57vstinnersetrecipients: + vstinner, georg.brandl, paul.moore, mark.dickinson, pitrou, tim.golden, zach.ware, steve.dower, RazerM, Dave Hibbitts
2016-02-24 09:24:57vstinnersetmessageid: <>
2016-02-24 09:24:57vstinnerlinkissue26423 messages
2016-02-24 09:24:57vstinnercreate