Mark Dickinson <dicki...@gmail.com> added the comment:

There's also the minor annoyance that there isn't currently an obvious safe way 
to convert an integer-like thing to an actual int, to make sure that bools do 
the right thing in a numeric context. operator.index *ought* to be that obvious 
way, but it leaves bools untouched.

>>> operator.index(True)
True

----------

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

Reply via email to