Terry J. Reedy added the comment:

I changed the line to 
* If it is unicode, you must also give the encoding (and optionally, errors) 
parameters; bytearray() then converts the unicode to bytes using 
unicode.encode().

Thank you for the report, and for your work answering questions on SO

----------
assignee: docs@python -> terry.reedy
nosy: +terry.reedy
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
type:  -> behavior

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

Reply via email to