[Python-Dev] marshal (was:Buffer interface in abstract.c? )

Jack Jansen jack@oratrix.nl
Mon, 16 Aug 1999 11:42:42 +0200


> On Sun, 15 Aug 1999, M.-A. Lemburg wrote:
> 
> > Actually, I think you could use arrays to do the trick right now,
> > because they are writeable (unlike strings). Until creating
> > writeable buffer objects becomes possible that is...
> 
> No, because I can't make an array around existing memory which Win32
> allocates before I get to it.

Would adding a buffer interface to cobject solve your problem? Cobject is 
described as being used for passing C objects between Python modules, but I've 
always thought of it as passing C objects from one C routine to another C 
routine through Python, which doesn't necessarily understand what the object 
is all about.

That latter description seems to fit your bill quite nicely.
--
Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.oratrix.nl/~jack    | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm