[Python-ideas] Quick idea: defining variables from functions that take the variable name
Steven D'Aprano
steve at pearwood.info
Wed Jun 1 12:49:24 EDT 2016
On Thu, Jun 02, 2016 at 02:14:31AM +1000, Steven D'Aprano wrote:
> # Your proposal.
> def T as (lambda: Typevar)()
> def x as (lambda: sympy.Symbol)()
This is wrong, I misunderstood Alan. I wrongly interpreted him as saying
that the expression on the right would be *called* and must return a
one-argument function, but that's not what he said.
Apologies for the confusion.
--
Steve
More information about the Python-ideas
mailing list