8 Dec
2017
8 Dec
'17
10:11 a.m.
On Fri, 8 Dec 2017 15:12:30 +0100 Erik Bray <erik.m.bray@gmail.com> wrote:
On Fri, Dec 8, 2017 at 1:52 PM, Antoine Pitrou <solipsis@pitrou.net> wrote:
On Fri, 8 Dec 2017 14:30:00 +0200 Serhiy Storchaka <storchaka@gmail.com> wrote:
NumPy integers implement __index__.
That doesn't help if a function calls e.g. PyLong_AsLongAndOverflow().
Right--pointing to __index__ basically implies that PyIndex_Check and subsequent PyNumber_AsSsize_t than there currently are. That I could agree with but then it becomes a question of where are those cases? And what do with, e.g. interfaces like PyLong_AsLongAndOverflow(). Add more PyNumber_ conversion functions?
We would probably need more PyNumber_ conversion functions indeed. Regards Antoine.