New submission from Gregory P. Smith:
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...
--
components: Interpreter Core
keywords: py3k
messages: 55333
nosy: gregory.p.smith
priority: normal
severity: normal
status: open
title: bytes buffer API needs to support PyBUF_LOCKDATA
type: rfe
versions: Python 3.0
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1035
__
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com