Buffer objects would return the read or write buffer for a wrapped object when
commitd86e41cbdcd1c6676ee71755b2b1d238f5ab66cf
authorbrett.cannon <brett.cannon@6015fed2-1504-0410-9fe1-9d1591cc4771>
Thu, 8 Jun 2006 17:00:45 +0000 (8 17:00 +0000)
committerbrett.cannon <brett.cannon@6015fed2-1504-0410-9fe1-9d1591cc4771>
Thu, 8 Jun 2006 17:00:45 +0000 (8 17:00 +0000)
treee67afce97ba63feec12953cf0f1846c96a86b9d1
parentd157e8544e123b0b38180dc603c54836910e11ff
Buffer objects would return the read or write buffer for a wrapped object when
the char buffer was requested.  Now it actually returns the char buffer if
available or raises a TypeError if it isn't (as is raised for the other buffer
types if they are not present but requested).

Not a backport candidate since it does change semantics of the buffer object
(although it could be argued this is enough of a bug to bother backporting).

git-svn-id: http://svn.python.org/projects/python/trunk@46757 6015fed2-1504-0410-9fe1-9d1591cc4771
Lib/test/test_types.py
Misc/NEWS
Modules/arraymodule.c
Objects/bufferobject.c