[issue8340] bytearray undocumented on trunk

Éric Araujo report at bugs.python.org
Sun Apr 11 00:10:34 CEST 2010


Éric Araujo <merwok at 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 <report at bugs.python.org>
<http://bugs.python.org/issue8340>
_______________________________________


More information about the Python-bugs-list mailing list