Martin v. Löwis <[EMAIL PROTECTED]> added the comment: I believe the 2.6 s# processing works correctly; the error is in the bytearray object. This either shouldn't support the buffer interface, or it shouldn't reallocate the buffer after having returned a pointer to it.
For 3k, convertbuffer shouldn't call bf_releasebuffer; instead, the caller of ParseTuple somehow needs to release the buffer. As a consequence, s# should refuse buffer objects who have a bf_releasebuffer operation, and another code might get added to fill out a Py_buffer - or s# can get changed to always produce a Py_buffer (which would affect the code significantly). ---------- nosy: +loewis _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3139> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com