[Python-Dev] The buffer() function (original) (raw)

Thomas Heller theller at python.net
Thu Jul 13 19:03:22 CEST 2006


Fredrik Lundh schrieb:

Thomas Heller wrote:

Naturally I tried to call base64.encodestring(buffer(ctypesinstance)) and it worked, so that was my answer. does ctypesinstance implement the buffer API ? if it does, is the buffer() call even necessary ?

Yes, in both cases.

Thomas



More information about the Python-Dev mailing list