[issue21816] OverflowError: Python int too large to convert to C long

2014-06-20 Thread Thomas Ball
New submission from Thomas Ball: The attached file raises the exception: OverflowError: Python int too large to convert to C long in Python 2.7.7, which clearly is a bug. The error is not present in Python 3.4. -- files: testint.py messages: 221116 nosy: Thomas.Ball priority: normal

[issue21816] OverflowError: Python int too large to convert to C long

2014-06-20 Thread Ned Deily
Ned Deily added the comment: In a 32-bit version of Python 2, that value cannot be represented as an 'int' type. i = 3783907807 type(i) type 'long' Normally, Python 2 implicitly creates objects of type 'int' or type 'long' as needed. But in your example, you are forcing type 'int' and you