[Python-ideas] PEP 572: Statement-Local Name Bindings

Stephen J. Turnbull turnbull.stephen.fw at u.tsukuba.ac.jp
Thu Mar 1 08:31:41 EST 2018


Nick Coghlan writes:
 >     for .i in range(10):
 >         print(.i) # This is fine
 >     print(.i) # This is an error (unless an outer statement also sets .i)

That's one heck of a lot of grit on Tim's screen!



More information about the Python-ideas mailing list