On Sat, Nov 03, 2007, Brett Cannon wrote:
> On 11/3/07, Christian Heimes <[EMAIL PROTECTED]> wrote:
>>
>> No, Python has no means to check for the buffer interface yet. You could
>> do isinstance(ob, (bytes, buffer)) but it wouldn't catch every object.
>> We could create a PyObject_CheckWriteBuffer() API function and expose
>> PyObject_CheckReadBuffer() and PyObject_CheckWriteBuffer() expose them.
>> Or we could abuse isinstance(ob, memoryview). Or an ABC?
> 
> An ABC would be best.  I know there was a discussion about what the
> best name would be for such an ABC but I don't remember the conclusion
> reached.

Guido said ByteSequence for the bytes, so MutableByteSequence?
-- 
Aahz ([EMAIL PROTECTED])           <*>         http://www.pythoncraft.com/

"Typing is cheap.  Thinking is expensive."  --Roy Smith
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
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