[issue1035] bytes buffer API needs to support PyBUF_LOCKDATA

2007-08-29 Thread Gregory P. Smith

Gregory P. Smith added the comment:

I sent an initial patch to the mailing list.  Its too late to be ready
for 3.0a1; I'll fix it up next week.

--
assignee:  - gregory.p.smith

__
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



[issue1035] bytes buffer API needs to support PyBUF_LOCKDATA

2007-08-27 Thread Gregory P. Smith

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



[issue1035] bytes buffer API needs to support PyBUF_LOCKDATA

2007-08-27 Thread Gregory P. Smith

Changes by Gregory P. Smith:


--
priority: normal - 

__
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