[issue32037] Pickle 32-bit integers with protocol 0 as INT instead of LONG

2017-11-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue32037] Pickle 32-bit integers with protocol 0 as INT instead of LONG

2017-11-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3daaafb700df45716bb55f3a293f88773baf3463 by Serhiy Storchaka in branch 'master': bpo-32037: Use the INT opcode for 32-bit integers in protocol 0 pickles. (#4407) https://github.com/python/cpython/commit/3daaafb700df45716bb55f3a293f88773baf3463

[issue32037] Pickle 32-bit integers with protocol 0 as INT instead of LONG

2017-11-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +4356 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue32037] Pickle 32-bit integers with protocol 0 as INT instead of LONG

2017-11-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : In Python 3 different opcodes are used for pickling integers with protocol 1 and higher. But pickling with protocol 0 always uses the LONG opcode. In Python all such integers are unpickled to the long instances. Proposed PR makes integers that fit in a si