On Thu, Aug 23, 2007 at 09:17:04PM -0700, Guido van Rossum wrote:
> On 8/23/07, Greg Ewing <[EMAIL PROTECTED]> wrote:
> > Gregory P. Smith wrote:
> > > Wasn't a past mailing list thread claiming the bytes type was supposed
> > > to be great for IO?  How's that possible unless we add a lock to the
> > > bytesobject?
> >
> > Doesn't the new buffer protocol provide something for
> > getting a locked view of the data? If so, it seems like
> > bytes should implement that.
> 
> It *does* implement that! So there's the solution: these APIs should
> not insist on bytes but use the buffer API. It's quite a bit of work I
> suspect (especially since you can't use PyArg_ParseTuple with y# any
> more) but worth it.
> 
> BTW PyUnicode should *not* support the buffer API.
> 
> I'll add both of these to the task spreadsheet.

this sounds good, i'll work on it today for bsddb and hashlib.

-greg
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to