Message71342
> 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). |
|
Date |
User |
Action |
Args |
2008-08-18 15:51:23 | pitrou | set | recipients:
+ pitrou, barry, teoliphant, MrJean1, benjamin.peterson |
2008-08-18 15:51:23 | pitrou | set | messageid: <1219074683.35.0.254120341281.issue3132@psf.upfronthosting.co.za> |
2008-08-18 15:51:22 | pitrou | link | issue3132 messages |
2008-08-18 15:51:21 | pitrou | create | |
|