Author Chris.Colbert
Recipients Chris.Colbert
Date 2014-09-21.16:26:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1411316768.43.0.141557856004.issue22453@psf.upfronthosting.co.za>
In-reply-to
Content
This is how the macro is defined in object.h:

2.7
/* Helper for passing objects to printf and the like */
#define PyObject_REPR(obj) PyString_AS_STRING(PyObject_Repr(obj))

3.4
/* Helper for passing objects to printf and the like */
#define PyObject_REPR(obj) _PyUnicode_AsString(PyObject_Repr(obj))


PyObject_Repr returns a new reference, which is not released by the macro. 

This macro only seems to be used internally for error reporting in compile.c, so it's unlikely to be causing any pressing issues for the interpreter, but it may be biting some extension modules.
History
Date User Action Args
2014-09-21 16:26:08Chris.Colbertsetrecipients: + Chris.Colbert
2014-09-21 16:26:08Chris.Colbertsetmessageid: <1411316768.43.0.141557856004.issue22453@psf.upfronthosting.co.za>
2014-09-21 16:26:08Chris.Colbertlinkissue22453 messages
2014-09-21 16:26:08Chris.Colbertcreate