[Python-Dev] Expression optimizations

Daniel Stutzbach daniel at stutzbachenterprises.com
Tue Feb 10 21:42:47 CET 2009


On Tue, Feb 10, 2009 at 2:36 PM, Cesare Di Mauro
<cesare.dimauro at a-tono.com>wrote:

> OK, so I can make assumptions only for built-in types.
>

Yes, but even there you have to be careful of odd corner-cases, such as:

>>> nan = float('nan')
>>> nan < nan
False
>>> nan >= nan
False

--
Daniel Stutzbach, Ph.D.
President, Stutzbach Enterprises, LLC <http://stutzbachenterprises.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20090210/692d6dd5/attachment.htm>


More information about the Python-Dev mailing list