Oooh, PEP463, you're reason with I switch to LBYL or write studpid try except functions so much times.

Oh and also the local assignement "let/where/statement" :D

x = (y+1 where y = 3.14) because x = [y+1 for y in [3.14]][0] is an overkill and ugly.

Should I write a PEP even though I know it's going to be rejected because the mailing list was not really into it ?

Le mer. 31 oct. 2018 à 18:37, Michael Selik <mike@selik.org> a écrit :
On Wed, Oct 31, 2018 at 10:17 AM Eric Fahlgren <ericfahlgren@gmail.com> wrote:
On Wed, Oct 31, 2018 at 2:42 AM Chris Angelico <rosuav@gmail.com> wrote:
https://www.python.org/dev/peps/pep-0463/ wants to say hi.

That was exactly my reaction, too, and usually is whenever one of these "add a default" or similar ideas pops up.  463 should be re-examined, I was very hopeful when it went through the wringer the first time, but alas it was not to be.

I'll add my vote to re-examining PEP 463.
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/