[issue10538] PyArg_ParseTuple("s*") does not always incref object

2012-03-22 Thread STINNER Victor
STINNER Victor added the comment: Thanks :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10538] PyArg_ParseTuple("s*") does not always incref object

2012-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8efe88c0f14e by krisvale in branch '2.7': Issue #10538 - Update Misc/NEWS http://hg.python.org/cpython/rev/8efe88c0f14e -- ___ Python tracker

[issue10538] PyArg_ParseTuple("s*") does not always incref object

2012-03-22 Thread STINNER Victor
STINNER Victor added the comment: You should mention your change in Misc/NEWS. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10538] PyArg_ParseTuple("s*") does not always incref object

2012-03-22 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue10538] PyArg_ParseTuple("s*") does not always incref object

2012-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 17c671529f7e by Kristján Valur Jónsson in branch '2.7': Issue #10538. Put a reference to the source object in the Py_buffer when http://hg.python.org/cpython/rev/17c671529f7e -- nosy: +python-dev ___ Pyt

[issue10538] PyArg_ParseTuple("s*") does not always incref object

2012-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue10538] PyArg_ParseTuple("s*") does not always incref object

2012-03-22 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Adding a patch here. -- keywords: +patch Added file: http://bugs.python.org/file24995/#10538.patch ___ Python tracker ___ _

[issue10538] PyArg_ParseTuple("s*") does not always incref object

2012-03-20 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue10538] PyArg_ParseTuple("s*") does not always incref object

2010-12-15 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Well, I can submit a patch if anyone is interested. I came across this when writing asynchronous network code. By hanging onto the Py_buffer, I should have access to the data during the network call. But it only worked for "true" Py_buffer objects an

[issue10538] PyArg_ParseTuple("s*") does not always incref object

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: pitrou -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue10538] PyArg_ParseTuple("s*") does not always incref object

2010-11-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue10538] PyArg_ParseTuple("s*") does not always incref object

2010-11-26 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> pitrou nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10538] PyArg_ParseTuple("s*") does not always incref object

2010-11-26 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson : -- versions: -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue10538] PyArg_ParseTuple("s*") does not always incref object

2010-11-26 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson : The new "s*" code for PyArg_ParseTuple is used to fill a Py_buffer object from the arguments. This object must be relased using PyBuffer_Release() after use. However, if the object in the tuple does not support the new buffer interface, the old buf