Author gregory.p.smith
Recipients gregory.p.smith
Date 2007-08-27.07:42:47
SpamBayes Score 0.0754238
Marked as misclassified No
Message-id <1188200568.98.0.237862868597.issue1035@psf.upfronthosting.co.za>
In-reply-to
Content
I've converted _bsddb.c to use the py3k buffer API for all data and keys
it takes as input.  All tests now fail with this error:

BufferError: Cannot make this object read-only.

This presumably results from this call:

  PyObject_GetBuffer(obj, view, PyBUF_LOCKDATA)

I need to lock the data so that the GIL can be released during database
operations (I/O).

Allowing bytes objects to have an immutability or readonly bit (internal
or otherwise) has been a recent topic on the python-3000 mailing list;
that would allow bytes' buffer API to satisfy this GetBuffer LOCKDATA
request...
History
Date User Action Args
2007-08-27 07:42:49gregory.p.smithsetspambayes_score: 0.0754238 -> 0.0754238
recipients: + gregory.p.smith
2007-08-27 07:42:48gregory.p.smithsetspambayes_score: 0.0754238 -> 0.0754238
messageid: <1188200568.98.0.237862868597.issue1035@psf.upfronthosting.co.za>
2007-08-27 07:42:48gregory.p.smithlinkissue1035 messages
2007-08-27 07:42:47gregory.p.smithcreate