[issue33299] Return an object itself for some types in _PyCode_ConstantKey()

2018-04-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue33299] Return an object itself for some types in _PyCode_ConstantKey()

2018-04-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b7e1eff8436f6e0c4aac440036092fcf96f82960 by Serhiy Storchaka in branch 'master': bpo-33299: Return an object itself for some types in _PyCode_ConstantKey(). (GH-6513) https://github.com/python/cpython/commit/b7e1eff8436f6e0c4aac440036092fcf96f

[issue33299] Return an object itself for some types in _PyCode_ConstantKey()

2018-04-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +6206 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue33299] Return an object itself for some types in _PyCode_ConstantKey()

2018-04-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue33299] Return an object itself for some types in _PyCode_ConstantKey()

2018-04-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : _PyCode_ConstantKey() wraps a constant into a tuple that contains other items besides the wrapped object. This makes booleans different from 0 and 1, makes numbers of different type different (1, 1.0 and 1.0+0j), makes floating point zeros with different