| 1 |
From: Greg Stein <[email protected]> |
| 2 |
To: [email protected] |
| 3 |
Subject: Re: [Python-Dev] Buffer interface in abstract.c? |
| 4 |
Date: Mon, 02 Aug 1999 18:51:43 -0700 |
| 5 |
Message-ID: <[email protected]> |
| 6 |
In-Reply-To: <001001bedd48$ea796280$1101a8c0@bobcat> |
| 7 |
MIME-Version: 1.0 |
| 8 |
Content-Type: multipart/mixed; boundary="===============3766712876154848986==" |
| 9 |
|
| 10 |
--===============3766712876154848986== |
| 11 |
Content-Type: text/plain; charset="utf-8" |
| 12 |
Content-Transfer-Encoding: 7bit |
| 13 |
|
| 14 |
Mark Hammond wrote: |
| 15 |
> ... |
| 16 |
> Therefore, I would like to propose these functions to be added to |
| 17 |
> abstract.c: |
| 18 |
> |
| 19 |
> int PyObject_GetBufferSize(); |
| 20 |
> void *PyObject_GetReadWriteBuffer(); /* or "char *"? */ |
| 21 |
> const void *PyObject_GetReadOnlyBuffer(); |
| 22 |
> |
| 23 |
> Although equivalent functions exist for the buffer object, I can't see the |
| 24 |
> equivalent abstract implementations - ie, that work with any object |
| 25 |
> supporting the protocol. |
| 26 |
> |
| 27 |
> Im willing to provide a patch if there is agreement a) the general idea is |
| 28 |
> good, and b) my specific spelling of the idea is OK (less likely - |
| 29 |
> PyBuffer_* seems better, but loses any implication of being abstract?). |
| 30 |
|
| 31 |
Marc-Andre proposed exactly the same thing back at the end of March (to |
| 32 |
me and Guido). The two of us hashed out some of the stuff and M.A. came |
| 33 |
up with a full patch for the stuff. Guido was relatively non-committal |
| 34 |
at the point one way or another, but said they seemed fine. It appears |
| 35 |
the stuff never made it into source control. |
| 36 |
|
| 37 |
If Marc-Andre can resurface the final proposal/patch, then we'd be set. |
| 38 |
|
| 39 |
Until then: use the bufferprocs :-) |
| 40 |
|
| 41 |
Cheers, |
| 42 |
-g |
| 43 |
|
| 44 |
-- |
| 45 |
Greg Stein, http://www.lyra.org/ |
| 46 |
|
| 47 |
|
| 48 |
--===============3766712876154848986==-- |
| 49 |
|
| 50 |
|