[issue3132] implement PEP 3118 struct changes
Antoine Pitrou
report at bugs.python.org
Mon Aug 18 17:51:23 CEST 2008
Antoine Pitrou <pitrou at free.fr> added the comment:
> Actually, this may be a requirement of #2394; PEP 3118 states that
> memoryview.tolist would use the struct module to do the unpacking.
:-(
However, we don't have any examples of the buffer API / memoryview
object working with something else than 1-dimensional contiguous char
arrays (e.g. bytearray). Therefore, I suggest that Python 3.0 provide
official support only for 1-dimensional contiguous char arrays. Then
tolist() will be easy to implement even without using the struct module
(just a list of integers, if I understand the functionality).
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3132>
_______________________________________
More information about the Python-bugs-list
mailing list