Author steven.daprano
Recipients Justin McNiel, josh.r, paul.moore, steve.dower, steven.daprano, tim.golden, zach.ware
Date 2017-02-10.10:53:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1486723983.47.0.595967105972.issue29518@psf.upfronthosting.co.za>
In-reply-to
Content
I agree with Josh: the exception you are giving doesn't seem possible with the code snippet shown. Please COPY AND PASTE (not a screen shot) the text of the entire traceback, starting with the line "Traceback..."

I suspect that you may have shadowed the built-in range or len object with some custom object, but I could be completely wrong. But without more information, we cannot tell what is going on.

It would be really useful if you could provide a minimal (short as possible) script that reproduces the problem. And please confirm that you can reproduce the problem in the regular CPython interpreter, without using any third-party IDEs.
History
Date User Action Args
2017-02-10 10:53:03steven.dapranosetrecipients: + steven.daprano, paul.moore, tim.golden, zach.ware, steve.dower, josh.r, Justin McNiel
2017-02-10 10:53:03steven.dapranosetmessageid: <1486723983.47.0.595967105972.issue29518@psf.upfronthosting.co.za>
2017-02-10 10:53:03steven.dapranolinkissue29518 messages
2017-02-10 10:53:03steven.dapranocreate