[Python-ideas] Modern language design survey for "assign and compare" statements

Greg Ewing greg.ewing at canterbury.ac.nz
Sun May 20 19:10:23 EDT 2018


Tim Peters wrote:
>>>x: 12 y: 13
> == 13
>>>[x y]
> == [x y]
>>>do [x y]
> == 13

How does scoping work? If you pass a block to a function
which evaluates it, how are names in the block resolved?

-- 
Greg


More information about the Python-ideas mailing list