[Python-ideas] Null coalescing operators
Guido van Rossum
guido at python.org
Sat Sep 19 23:47:52 CEST 2015
On Sat, Sep 19, 2015 at 2:39 PM, Random832 <random832 at fastmail.com> wrote:
> Xavier Combelle
> <xavier.combelle at gmail.com> writes:
>
> > I'm curious on which API returning None, a major bonus on using python
> > is that I pretty never stumbled upon the equivalent of
> > NullPointerException.
>
> It doesn't strictly have one; None is an object and you get the usual
> TypeError, AttributeError, etc, upon using it in a place it's not expected.
>
Most often AttributeError. It's pretty common in large Python systems.
--
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150919/25408847/attachment.html>
More information about the Python-ideas
mailing list