Éric Araujo <mer...@netwok.org> added the comment: > * If it is a *string*, you must also give the *encoding* (and optionally, > *errors*) parameters; :func:`bytearray` then converts the string to > bytes using :meth:`str.encode`.
I think this needs some lines to tell how it behaves with str and unicode. Regards ---------- nosy: +merwok _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8340> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com