Stefan Behnel <stefan...@behnel.de> added the comment:

> as `range` may have been shadowed at that point

No, range() has in fact already been executed at that point. And it returned an 
iterable that knows its length (search for "LengthHint" in the CPython sources).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32945>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to