[issue28998] Unifying Long Integers and Integers in 2.7

2016-12-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue28998] Unifying Long Integers and Integers in 2.7

2016-12-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset ffcb321ba9c0 by Serhiy Storchaka in branch '2.7': Issue #28998: More APIs now support longs as well as ints. https://hg.python.org/cpython/rev/ffcb321ba9c0 -- nosy: +python-dev ___ Python tracker

[issue28998] Unifying Long Integers and Integers in 2.7

2016-12-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added checks for errors in C code (they are needed even without supporting Python longs, PyInt_AsLong() can fail with Python ints) and a fast path for Python longs in PyInt_AsLong() (avoid creating temporary Python int). -- assignee: ->

[issue28998] Unifying Long Integers and Integers in 2.7

2016-12-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch Added file: http://bugs.python.org/file45935/py2_int_long.diff ___ Python tracker

[issue28998] Unifying Long Integers and Integers in 2.7

2016-12-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Since implementing PEP 237 (Unifying Long Integers and Integers) in Python 2.4 int and long instances became interchangeable. Virtually any function that needs an integer, accepts both int and long. But there are few places where only int is accepted.