Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Cython differs from CPython: unexpected integer overflow #2866
The following purely Python code produces different answers in CPython and Cython:
CPython produces the expected answer, 111111111111111111111111111111. However Cython produces a different answer: 119304647 on Windows (where
The problem is supposedly in the list generator, where 10 is not promoted to a big integer before raising to a very large power.
Relevant software versions:
Note that with Python 2 this problem is not reproduced.
Thanks for the report. IIRC,