Serhiy Storchaka added the comment:

I think it would be better to replace PyNumber_Check() with PyIndex_Check() and 
change error messages to more specific. In IO related functions the accepted 
values are integers and None. In bytes/bytearray methods -- integers and 
bytes-like objects.

----------

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

Reply via email to