[Python-3000] Single buffer implied in new buffer protocol?

Stefan Behnel stefan_ml at behnel.de
Thu Jun 5 15:35:04 CEST 2008


Nick Coghlan wrote:
> Stefan Behnel wrote:
>> One question: what does that mean for the mutable bytearray class? How
>> would that handle locking?
> 
> No need to confuse the question of memory access with the question of
> thread synchronisation.

Fair enough. Single-threaded code is extremely common in CPython after all.

So that means it's fine to remove all locking related functionality from the
new buffer protocol and leave everything to application space, right?

Here is a patch for the PEP that reflects this.

Stefan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pep-3113-no-locking.patch
Type: text/x-patch
Size: 11631 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-3000/attachments/20080605/9a105a2d/attachment.bin>


More information about the Python-3000 mailing list