[Image-SIG] Proper application of the buffer interface

David Ascher da at ski.org
Wed Aug 4 23:20:17 EDT 1999


On Thu, 5 Aug 1999, Mark Hammond wrote:

> Just to extend my guesswork somewhat, there is a new built-in "buffer()"
> function.  This returns a "buffer" object.  I speculate this should be used
> in preference to Python strings when you have binary data.  

Would it also make sense to make struct.pack() return a buffer object
instead of a string?

--david ascher





More information about the Python-list mailing list