• Brett Cannon's avatar
    Buffer objects would return the read or write buffer for a wrapped object when · de3b0522
    Brett Cannon yazdı
    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).
    de3b0522
test_types.py 10.1 KB