<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>On Sep 19, 2015, at 14:47, Guido van Rossum <<a href="mailto:guido@python.org">guido@python.org</a>> wrote:</div><div><br></div><blockquote type="cite"><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Sep 19, 2015 at 2:39 PM, Random832 <span dir="ltr"><<a href="mailto:random832@fastmail.com" target="_blank">random832@fastmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Xavier Combelle<br>
<span class=""><<a href="mailto:xavier.combelle@gmail.com">xavier.combelle@gmail.com</a>> writes:<br>
<br>
> I'm curious on which API returning None, a major bonus on using python<br>
> is that I pretty never stumbled upon the equivalent of<br>
> NullPointerException.<br>
<br>
</span>It doesn't strictly have one; None is an object and you get the usual<br>
TypeError, AttributeError, etc, upon using it in a place it's not expected.<br></blockquote></div><br></div><div class="gmail_extra">Most often AttributeError. It's pretty common in large Python systems.<br clear="all"></div></div></div></blockquote><div><br></div>The TypeErrors usually come from novices. There are many of StackOverflow questions asking why they can't add spam.get_text() + "\n" where they don't show you the implementation of get_text, or the exception they got, but you just know they forgot a return statement at the end and the exception was a TypeError about adding NoneType and str.<br><br><blockquote type="cite"><div><div dir="ltr"><div class="gmail_extra"></div></div></div></blockquote></body></html>