[Python-ideas] Null coalescing operators

Random832 random832 at fastmail.com
Sat Sep 19 23:39:41 CEST 2015


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.



More information about the Python-ideas mailing list