Good to see Python3 got rid of that confusion :]<div><br clear="all">Cheers,<div>Xav</div><br>
<br><br><div class="gmail_quote">On 17 January 2012 16:50, Chris Angelico <span dir="ltr"><<a href="mailto:rosuav@gmail.com">rosuav@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tue, Jan 17, 2012 at 5:47 PM, Xavier Ho <<a href="mailto:contact@xavierho.com">contact@xavierho.com</a>> wrote:<br>
> What was the rationale behind this design? Specifically, (None < 0) == True<br>
> and (None == 0) == False?<br>
><br>
> Personally I would have expected an exception on all tests above.<br>
<br>
</div>Compare with Python 3:<br>
<br>
>>> None<0<br>
<div class="im">Traceback (most recent call last):<br>
</div> File "<pyshell#31>", line 1, in <module><br>
None<0<br>
TypeError: unorderable types: NoneType() < int()<br>
<br>
ChrisA<br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br></div>