Message287510
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. |
|
Date |
User |
Action |
Args |
2017-02-10 10:53:03 | steven.daprano | set | recipients:
+ steven.daprano, paul.moore, tim.golden, zach.ware, steve.dower, josh.r, Justin McNiel |
2017-02-10 10:53:03 | steven.daprano | set | messageid: <1486723983.47.0.595967105972.issue29518@psf.upfronthosting.co.za> |
2017-02-10 10:53:03 | steven.daprano | link | issue29518 messages |
2017-02-10 10:53:03 | steven.daprano | create | |
|