On Thu, 11 Feb 2021 at 15:09, J. Pic <j...@yourlabs.org> wrote:
>
> I think you also need return, and double space pound space qa to pass linters:
>
> def foo(): return 1 # noqa
>
> Instead of
>
> foo = lambda: 1
>
> And this proposal:
>
> foo(): 1
>
> The benefit is just to get more out of the 80 characters when we want to 
> define a short callback.
>
> I understand this is not a life changing proposal, but was wondering if it 
> was "nice enough" to be worth proposing.

Honestly, I doubt it. If you look at the history on this list, you'll
find a lot of proposals whose main justification was "convenience" or
"it's shorter". They rarely get very far.
Paul
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/2VRIPCDKDGZVR7UZBT63XJKBOTH4IEWB/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to