This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author chuck
Recipients chuck, exarkun, georg.brandl, gregory.p.smith, ivank, loewis, pitrou
Date 2009-09-21.07:21:56
SpamBayes Score 4.5785492e-07
Marked as misclassified No
Message-id <1253517719.13.0.582769224456.issue6071@psf.upfronthosting.co.za>
In-reply-to
Content
I tried to implement the new buffer API, but as soon as I add 
bf_getbuffer/bf_releasebuffer to PyBufferProcs writing an array to a file 
breaks:
  f.write(a)
  TypeError: must be contiguous buffer, not array.array

I searched through the file functions, but couldn't find the point where 
this happens. Has anybody a suggestion? Does file.write() use the old 
buffers? Doesn't it use reprfunc?
History
Date User Action Args
2009-09-21 07:21:59chucksetrecipients: + chuck, loewis, georg.brandl, gregory.p.smith, exarkun, pitrou, ivank
2009-09-21 07:21:59chucksetmessageid: <1253517719.13.0.582769224456.issue6071@psf.upfronthosting.co.za>
2009-09-21 07:21:57chucklinkissue6071 messages
2009-09-21 07:21:57chuckcreate