Message71342
| Author |
pitrou |
| Recipients |
MrJean1, barry, benjamin.peterson, pitrou, teoliphant |
| Date |
2008年08月18日.15:51:21 |
| SpamBayes Score |
2.6991781e-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). |
|