Author pitrou
Recipients MrJean1, barry, benjamin.peterson, pitrou, teoliphant
Date 2008-08-18.15:51:21
SpamBayes Score 2.69918e-06
Marked as misclassified No
Message-id <1219074683.35.0.254120341281.issue3132@psf.upfronthosting.co.za>
In-reply-to
Content
> 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).
History
Date User Action Args
2008-08-18 15:51:23pitrousetrecipients: + pitrou, barry, teoliphant, MrJean1, benjamin.peterson
2008-08-18 15:51:23pitrousetmessageid: <1219074683.35.0.254120341281.issue3132@psf.upfronthosting.co.za>
2008-08-18 15:51:22pitroulinkissue3132 messages
2008-08-18 15:51:21pitroucreate