On Fri, Oct 14, 2016 at 9:37 AM, Gustavo Carneiro <gjcarne...@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.
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to