[Image-SIG] Proper application of the buffer interface
mal at lemburg.com
Fri Aug 6 11:16:46 CEST 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.
Y2000: 147 days left
Python Pages: http://www.lemburg.com/python/
More information about the Python-list