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 <1456305897.73.0.441257622167.issue26423@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
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: <1456305897.73.0.441257622167.issue26423@psf.upfronthosting.co.za>
2016-02-24 09:24:57vstinnerlinkissue26423 messages
2016-02-24 09:24:57vstinnercreate