<p dir="ltr"><br>
On 10 Oct 2014 21:07, "Florian Bruhin" <<a href="mailto:me@the-compiler.org">me@the-compiler.org</a>> wrote:<br>
><br>
> FWIW, I'd also really like to see keyword arguments for these<br>
> builtins. I always have to keep myself from doing things like<br>
><br>
>     "foo bar    baz".split(count=1)<br>
><br>
> But as said, I suspect there is *some* reason this is not possible.</p>
<p dir="ltr">The technical reason is that many older CPython functions written in C use PyArg_ParseTuple, which only supports positional arguments.</p>
<p dir="ltr">When there's a concrete readability gain from adding keyword argument support to a particular function, patches will often be accepted.</p>
<p dir="ltr">Switching to argument clinic also offers improved introspection support, so that can be a good way to pursue the enhancement.</p>
<p dir="ltr">Regards,<br>
Nick.<br><br><br></p>
<p dir="ltr">><br>
> Florian<br>
><br>
> --<br>
> <a href="http://www.the-compiler.org">http://www.the-compiler.org</a> | <a href="mailto:me@the-compiler.org">me@the-compiler.org</a> (Mail/XMPP)<br>
>              GPG 0xFD55A072 | <a href="http://the-compiler.org/pubkey.asc">http://the-compiler.org/pubkey.asc</a><br>
>          I love long mails! | <a href="http://email.is-not-s.ms/">http://email.is-not-s.ms/</a><br>
><br>
> _______________________________________________<br>
> Python-ideas mailing list<br>
> <a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/python-ideas">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
> Code of Conduct: <a href="http://python.org/psf/codeofconduct/">http://python.org/psf/codeofconduct/</a><br>
</p>