[Python-ideas] PEP 505 -- None-aware operators

Mark E. Haase mehaase at gmail.com
Fri Oct 14 10:28:20 EDT 2016


On Fri, Oct 14, 2016 at 9:37 AM, Gustavo Carneiro <gjcarneiro at gmail.com>
wrote:

>
> I see.  short-circuiting is nice to have, sure.
>
> But even without it, it's still useful IMHO. <snip>
>

It's worth mentioning that SQL's COALESCE is usually (always?) short
circuiting:

https://www.postgresql.org/docs/9.5/static/functions-conditional.html
https://msdn.microsoft.com/en-us/library/ms190349.aspx

Given the debate about the utility of coalescing and the simplicity of
writing the function yourself, I doubt the standard library will accept it.
Most people here will tell you that such a utility belongs on PyPI.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20161014/b930ecc9/attachment-0001.html>


More information about the Python-ideas mailing list