This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author abacabadabacaba
Recipients abacabadabacaba, billm, georg.brandl, loewis
Date 2010-11-16.12:33:45
SpamBayes Score 2.924714e-06
Marked as misclassified No
Message-id <1289910828.02.0.304366806556.issue6083@psf.upfronthosting.co.za>
In-reply-to
Content
Actually, this can't be fixed without modifying C API methods PyArg_ParseTuple and PyArg_ParseTupleAndKeywords, because it's possible to make an object deallocated before PyArg_ParseTuple returns, so Py_INCREF immediately after parsing would be already too late.

Here are my test cases:
test-resource.py - in Modules/resource.c, and python-bug-01.patch won't work against it.
test-ctypes.py - in Modules/_ctypes/_ctypes.c.
test-functools.py - in Modules/_functoolsmodule.c (py3k only).
History
Date User Action Args
2010-11-16 12:33:48abacabadabacabasetrecipients: + abacabadabacaba, loewis, georg.brandl, billm
2010-11-16 12:33:48abacabadabacabasetmessageid: <1289910828.02.0.304366806556.issue6083@psf.upfronthosting.co.za>
2010-11-16 12:33:46abacabadabacabalinkissue6083 messages
2010-11-16 12:33:46abacabadabacabacreate