On Tue, Nov 21, 2017 at 11:40:14AM +0100, Stéfane Fermigier wrote: > for i in range(0, 100): > const foo = f(i) > const bar = g(i, foo) > do_something_with(bar)
I wouldn't expect that to work. You are binding some value f(0) to the constant name "foo" on the first loop, then on the second loop you try to rebind a new value to the same name "foo". I would expect that to be an error. -- Steve _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/