Hello,

On Thu, 11 Feb 2021 12:24:55 +0100
"J. Pic" <[email protected]> wrote:

> Hi all,
> 
> Lambdas can be defined as such:
> 
> w = lambda: [12]
> x = lambda y: len(y)
> 
> I'd like to propose the following:
> 
> w = (): [12]

What will be the meaning of {(): [12]} ? Hint: it will be a dictionary
of empty tuple mapping to a list, where do you see lambda here?

Generally, if you have an idea like that, please go ahead and implement
it with one of the existing macro engines for Python. That alone should
give yourself more insight how viable it is. Here's tutorial to get you
started: https://github.com/aroberge/ideas#usage



-- 
Best regards,
 Paul                          mailto:[email protected]
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/ANBA6WUHSG2BCENL724PX4MIRFPR2FI3/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to