[Image-SIG] Proper application of the buffer interface
M.-A. Lemburg
mal at lemburg.com
Fri Aug 6 05:16:46 EDT 1999
Fred L. Drake, Jr. wrote:
>
> David Ascher writes:
> > Would it also make sense to make struct.pack() return a buffer object
> > instead of a string?
>
> Sounds like it to me. If Guido agrees, I can make the changes.
Wait... what's so bad about buffer(struct.pack()) ? Strings already
know the buffer interface, so this works just fine already.
--
Marc-Andre Lemburg
______________________________________________________________________
Y2000: 147 days left
Business: http://www.lemburg.com/
Python Pages: http://www.lemburg.com/python/
More information about the Python-list
mailing list