Mailing List Archive

buffer API and pickle
Hi,
I saw the new "buffer" APi in the python 1.5.2 sources,
but was unable to find much more information about it.

It seems that the buffer mecanism would be ideal
to avoid conversion to string (duplicating data in memory)
when writing an object to a stream.

- Is the next version of pickle supposed to make use of
this buffer API ?

- What types of objects will support it:
strings, arrays, NumPy arrays, PIL images, ...


Emmanuel

--
Emmanuel Viennet: <viennet@lipn.univ-paris13.fr>
LIPN - Institut Galilee - Universite Paris-Nord
93430 Villetaneuse - France
http://www-lipn.univ-paris13.fr/~viennet/