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

Antoine Pitrou report at bugs.python.org
Sat Jun 19 17:24:10 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

On the principle the patch looks good. In practice, it lacks a call to `PyBuffer_Release(&buffer)` in the various error cases (before returning NULL). It also lacks some tests in Lib/test/test_array.py.

> In 3.x unicode type was renamed to str and str to bytes, so fromunicode 
> should become fromstring (or maybe fromstr to avoid confusion) and
> fromstring should become frombytes.

This should be discussed separately, perhaps on python-dev first.

----------
nosy: +haypo, pitrou

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


More information about the Python-bugs-list mailing list