R. David Murray <rdmur...@bitdance.com> added the comment:

What about bytearray?  Apparently that works pre-patch for at least read, 
though setpassword rejects it via an assertion.

Also, the error message should be "expected bytes" rather than "bytes 
expected".  Don't ask me why, that's just the way it is normally done, so the 
other order sounds weird to this English speaker's ear.  Otherwise the py3k 
patch looks good and tests correctly for me.

----------
nosy: +r.david.murray
versions: +Python 3.2 -Python 2.6, Python 3.0

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

Reply via email to