[Python-Dev] Deprecate the buffer object?

Neil Schemenauer nas-python at python.ca
Thu Oct 30 10:21:01 EST 2003

On Thu, Oct 30, 2003 at 03:30:18PM +1300, Greg Ewing wrote:
> That's completely different from what I had in mind, which was:
> (1) Keep a reference to the base object in the buffer object, and

It already does this.

> (2) Use the buffer API to fetch a fresh pointer from the
>     base object each time it's needed.
> Is there some reason that still wouldn't be safe enough?

I don't see any problem with that.  It's probably a better solution
since it doesn't require a new flag and it lets you create buffers
that reference objects like arrays.


More information about the Python-Dev mailing list