[Python-3000] Revised PEP for buffer protocol (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Tue Mar 20 23:56:52 CET 2007
- Previous message: [Python-3000] Revised PEP for buffer protocol
- Next message: [Python-3000] Revised PEP for buffer protocol
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Nick Coghlan wrote:
I think the point is for there to be something in the standard library or Python core that makes it easy for a consumer to copy the data to a contiguous memory segment in the event the consumer can't directly handle non-contiguous data
It would be even more useful if the destination could be non-contiguous as well, but with a different stride. Then you could go from contiguous to non-contiguous, non-contiguous to contiguous, or repack between two different non-contiguous formats.
-- Greg
- Previous message: [Python-3000] Revised PEP for buffer protocol
- Next message: [Python-3000] Revised PEP for buffer protocol
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]