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

Erik Bray erik.m.bray at gmail.com
Fri Dec 29 07:58:08 EST 2017


On Thu, Dec 28, 2017 at 8:42 PM, Serhiy Storchaka <storchaka at gmail.com> wrote:
> 28.12.17 12:10, Erik Bray пише:
>>
>> There's no index() alternative to int().
>
>
> operator.index()

Okay, and it's broken.  That doesn't change my other point that some
functions that could previously take non-int arguments can no
longer--if we agree on that at least then I can set about making a bug
report and fixing it.


More information about the Python-ideas mailing list