This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dw
Recipients benjamin.peterson, dw, hynek, kmike, piotr.dobrogost, pitrou, python-dev, scoder, serhiy.storchaka, skrah, stutzbach
Date 2015-03-04.21:04:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1425503069.48.0.602815825879.issue22003@psf.upfronthosting.co.za>
In-reply-to
Content
Hi Piotr,

There wasn't an obvious fix that didn't involve changing the buffer interface itself. There is presently ambiguity in the interface regarding the difference between a "read only" buffer and an "immutable" buffer, which is crucial for its use in this case.

Fixing the interface, followed by every buffer interface user, is a significantly more complicated task than simply optimizing for the most common case, as done here. FWIW I still think this work is worth doing, though I personally don't have time to approach it just now.

We could have (and possibly should) approach fixing e.g. mmap.mmap() hashability, possibly causing user code regressions, but even if such cases were fixed it still wouldn't be a enough to rely on for the optimization implemented here.
History
Date User Action Args
2015-03-04 21:04:29dwsetrecipients: + dw, pitrou, scoder, benjamin.peterson, stutzbach, skrah, python-dev, hynek, piotr.dobrogost, serhiy.storchaka, kmike
2015-03-04 21:04:29dwsetmessageid: <1425503069.48.0.602815825879.issue22003@psf.upfronthosting.co.za>
2015-03-04 21:04:29dwlinkissue22003 messages
2015-03-04 21:04:29dwcreate