Gregory P. Smith added the comment:

thanks.  btw an alternative type check to consider in these situations: 
PyIndex_Check

https://docs.python.org/2/c-api/number.html#c.PyIndex_Check

but what you wrote works.

----------
nosy: +gregory.p.smith

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22530>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to