[Python-ideas] Add "default" kwarg to list.pop()

Robert Vanden Eynde robertve92 at gmail.com
Wed Oct 31 15:23:49 EDT 2018


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 at selik.org> a écrit :

> On Wed, Oct 31, 2018 at 10:17 AM Eric Fahlgren <ericfahlgren at gmail.com>
> wrote:
>
>> On Wed, Oct 31, 2018 at 2:42 AM Chris Angelico <rosuav at 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 at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20181031/cd49fb58/attachment.html>


More information about the Python-ideas mailing list