[issue12973] int_pow() implementation is incorrect

Stefan Krah report at bugs.python.org
Thu Sep 15 00:33:13 CEST 2011


Stefan Krah <stefan-usenet at bytereef.org> added the comment:

== CPython 2.7.2+ (2.7:a698ad2741da+, Sep 15 2011, 00:17:28) [GCC 4.2.1 Compatible Clang 3.0 (trunk 139637)]
==   FreeBSD-8.0-RELEASE-amd64-64bit-ELF little-endian
==   /usr/home/stefan/pydev/cpython/build/test_python_71451

With clang 3.0 from trunk, the pow() failures are fixed. I still get:

test test_itertools failed -- Traceback (most recent call last):
  File "/usr/home/stefan/pydev/cpython/Lib/test/test_itertools.py", line 788, in test_islice
    self.assertEqual(len(list(islice(count(), 1, 10, maxsize))), 1)
AssertionError: 3 != 1


test test_list failed -- Traceback (most recent call last):
  File "/usr/home/stefan/pydev/cpython/Lib/test/test_list.py", line 59, in test_overflow
    self.assertRaises((MemoryError, OverflowError), mul, lst, n)
AssertionError: (<type 'exceptions.MemoryError'>, <type 'exceptions.OverflowError'>) not raised



But these are exactly the failures from 3.x. so they are probably
unrelated to this issue (and they are "fixed" by -fwrapv).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12973>
_______________________________________


More information about the Python-bugs-list mailing list