[issue12973] int_pow() implementation is incorrect

Mark Dickinson report at bugs.python.org
Wed Sep 14 21:17:55 CEST 2011


Mark Dickinson <dickinsm at gmail.com> added the comment:

I've got Clang from MacPorts, on OS X 10.6.8.

iwasawa:cpython mdickinson$ clang --version
clang version 2.9 (tags/RELEASE_29/final)
Target: x86_64-apple-darwin10
Thread model: posix

Without the patch (and before the -fwrapv inclusion), I get the following failures:

20 tests failed:
    test_array test_builtin test_bytes test_ctypes test_float
    test_fractions test_getargs2 test_index test_int test_itertools
    test_list test_long test_long_future test_math test_random test_re
    test_strtod test_tokenize test_types test_xrange

... and also test_decimal, which I had to delete because the failure caused the test run to hang.

With the patch, only test_ctypes is failing, for reasons that I presume are unrelated to int_pow.

----------

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


More information about the Python-bugs-list mailing list