[Python-ideas] Backtick expression: similar to a shorter lambda syntax
Stephan Hoyer
shoyer at gmail.com
Tue Jan 22 13:24:41 EST 2019
On Mon, Jan 21, 2019 at 8:47 AM Jonathan Fine <jfine2358 at gmail.com> wrote:
> > Backtick expressions work exactly like lambdas, except that they are
> bound to the instance they are created in every time that class is used to
> create one.
>
> I would if possible very much like to see some real world examples of
> Python code, that would benefit by being rewritten to use the new
> syntax.
>
> I'm particularly interested in examples that were written before this
> idea was posted to this list. And extra points for links with line
> numbers to Python code in a public git repository.
>
This has come up a few times before on Python-Ideas. Here are a few
examples from 2015 (but please read the full thread for discussion):
https://mail.python.org/pipermail/python-ideas/2015-March/032758.html
https://mail.python.org/pipermail/python-ideas/2015-March/032822.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20190122/23c7d13e/attachment.html>
More information about the Python-ideas
mailing list