> On Nov 21, 2017, at 5:40 AM, Stéfane Fermigier <s...@fermigier.com> wrote: > > for i in range(0, 100): > const foo = f(i) > const bar = g(i, foo) > do_something_with(bar)
This wouldn’t work, since a for loop doesn’t introduce a new scope for variables, and allowing a constant to be rebound in the same scope would somewhat defeat the purpose. _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/