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

Greg Ewing greg.ewing at canterbury.ac.nz
Tue May 31 19:10:19 EDT 2016

Steven D'Aprano wrote:
> name -> Function(args)
> will be expanded to:
> name = Function('name', args)

Another possibility would be to expand it to

    name = Function(args)
    name.__name__ = "name"


More information about the Python-ideas mailing list