[Python-Dev] buffer interface (again)

Thomas Heller thomas.heller@ion-tof.com
Wed, 18 Apr 2001 17:32:58 +0200


I would like to use (again) the buffer interface,
and I have some suggestions/questions.

- Only extension types can implement the buffer interface,
no way for a python class. Maybe a magic method __buffer__(self)
could be invented for this purpose?

- Why does the builtin function buffer() always return
readonly buffers, even for read/write objects? Shouldn't
there also be a readwrite_buffer() function, or should
buffer() return read/write buffers for read/write objects?

- My bug report 216405 on sourceforge is still open
(well, it is marked as closed, but it went into PEP 42)
http://sourceforge.net/tracker/index.php?func=detail&aid=216405&group_id=5470&atid=105470

Regards,

Thomas