Message309119
Per Serhiy's comment in this thread https://mail.python.org/pipermail/python-ideas/2017-December/048413.html (which I agree with), several of the PyLong_ functions have behavior carried over from Python 2 of calling __int__ on their arguments if the input is not a PyLongObject:
PyLong_AsLong
PyLong_AsLongAndOverflow
PyLong_AsLongLong
PyLong_AsLongLongAndOverflow
PyLong_AsUnsignedLongMask
PyLong_AsUnsignedLongLongMask
This behavior should probably be deprecated, and eventually removed. Interfaces that should accept generic number-like objects should use the PyNumber API instead. |
|
| Date |
User |
Action |
Args |
| 2017-12-28 10:19:25 | erik.bray | set | recipients:
+ erik.bray |
| 2017-12-28 10:19:25 | erik.bray | set | messageid: <[email protected]> |
| 2017-12-28 10:19:25 | erik.bray | link | issue32438 messages |
| 2017-12-28 10:19:24 | erik.bray | create | |
|