unintuitive for-loop behavior

Gregory Ewing greg.ewing at canterbury.ac.nz
Mon Oct 3 03:52:46 EDT 2016


Chris Angelico wrote:
> The only way to prove that something is a new binding is to
> demonstrate that, when this binding is removed, a previous one becomes
> visible.

Or capture them both with closures and show that each
closure sees a different version of the binding.

-- 
Greg



More information about the Python-list mailing list