[Python-ideas] Is there a reason some of the PyLong_As* functions don't call an object's __int__?

Antoine Pitrou solipsis at pitrou.net
Fri Dec 8 07:52:54 EST 2017


On Fri, 8 Dec 2017 14:30:00 +0200
Serhiy Storchaka <storchaka at gmail.com>
wrote:
> 
> NumPy integers implement __index__.

That doesn't help if a function calls e.g. PyLong_AsLongAndOverflow().

Regards

Antoine.




More information about the Python-ideas mailing list