[Python-Dev] pre-PEP: The Safe Buffer Interface

Greg Ewing greg@cosc.canterbury.ac.nz
Thu, 01 Aug 2002 11:48:21 +1200 (NZST)

Scott Gilbert <xscottg@yahoo.com>:

> getreadbufferproc bf_getreadbuffer;
> getwritebufferproc bf_getwritebuffer;
> acquirereadbufferproc bf_acquirereadbuffer;
> acquirewritebufferproc bf_acquirewritebuffer;

Is there really a need for both "get" and "acquire"
methods? Surely if an object requires locking, it
always requires locking, so why can't the "get"
functions simply include the locking operation
if they need it?

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+