Meador Inge <mead...@gmail.com> added the comment: Thanks for the review. I incorporated the check re-orderings.
I am also writing more tests. Which already exposed a subtly that I was not expecting: Python 3.2a0 (py3k:81284M, May 20 2010, 09:08:20) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> n = 2 ** 53 [37447 refs] >>> complex(n + 2) == n + 2 True [37457 refs] >>> complex(n + 1) == n + 1 False [37459 refs] >>> complex(n + 3) == n + 3 False [37460 refs] >>> complex(n + 4) == n + 4 True [37461 refs] >>> It seems as if 'complex(n + delta) == n + delta' when 'delta' is even. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8748> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com