Terry J. Reedy added the comment:

I think the point is that the error message does not make much sense unless one 
knows a) that the file is open in binary mode (and that could have happened in 
a different file) and b) that 'does not support the buffer interface' means 'is 
not a bytes-like object'. A possible replacement that addresses both problems:

binary-mode write requires bytes-like object, not 'int'

----------
nosy: +terry.reedy
stage:  -> needs patch
versions:  -Python 3.5

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

Reply via email to