[Python-ideas] Quick idea: defining variables from functions that take the variable name

Eric V. Smith eric at trueblade.com
Tue May 31 21:40:41 EDT 2016


On 5/31/2016 7:10 PM, Greg Ewing wrote:
> Steven D'Aprano wrote:
>> name -> Function(args)
>>
>> will be expanded to:
>>
>> name = Function('name', args)

This is sounding a lot like PEP 359, the "make" statement. There's also 
a lot of discussion on the mailing lists back then about similar 
constructs. The make statement was focused on blocks, but it did have 
similar semantics with a callable.

Eric.



More information about the Python-ideas mailing list