[issue8990] array constructor and array.fromstring should accept bytearray.

STINNER Victor report at bugs.python.org
Thu Jul 29 01:25:34 CEST 2010


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

I prefer the second solution (add to/frombytes, deprecate to/fromstring) because I prefer the new method names and it keeps backward compatibility (until we choose to remove the old methods, which should be in Python 3.3).

About the patch (tofrombytes.diff). You should use PyErr_WarnEx() result: if it is not nul (eg. if the user choosed to raise exceptions on warnings), you have to exit.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8990>
_______________________________________


More information about the Python-bugs-list mailing list