On Fri, 8 Dec 2017 14:30:00 +0200 Serhiy Storchaka <storch...@gmail.com> wrote: > > NumPy integers implement __index__.
That doesn't help if a function calls e.g. PyLong_AsLongAndOverflow(). Regards Antoine. _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/