Message239027
| Author | wolma |
|---|---|
| Recipients | martin.panter, python-dev, serhiy.storchaka, skrah, vstinner, wolma |
| Date | 2015-03-23.14:22:33 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1427120553.2.0.0480661049392.issue23688@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
ouch. haven't thought of this.
OTOH, just plain io with your example:
with open('xy', 'wb') as f:
f.write(y)
Traceback (most recent call last):
File "<pyshell#29>", line 2, in <module>
f.write(y)
BufferError: memoryview: underlying buffer is not C-contiguous
fails too and after all that's not too surprising.
In a sense, the old behavior was an artefact of silently copying the memoryview to bytes. You never used it *directly*.
But, yes, it is a change in (undocumented) behavior :( |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2015-03-23 14:22:33 | wolma | set | recipients: + wolma, vstinner, skrah, python-dev, martin.panter, serhiy.storchaka |
| 2015-03-23 14:22:33 | wolma | set | messageid: <1427120553.2.0.0480661049392.issue23688@psf.upfronthosting.co.za> |
| 2015-03-23 14:22:33 | wolma | link | issue23688 messages |
| 2015-03-23 14:22:33 | wolma | create | |