Message227219
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. |
|
Date |
User |
Action |
Args |
2014-09-21 16:26:08 | Chris.Colbert | set | recipients:
+ Chris.Colbert |
2014-09-21 16:26:08 | Chris.Colbert | set | messageid: <1411316768.43.0.141557856004.issue22453@psf.upfronthosting.co.za> |
2014-09-21 16:26:08 | Chris.Colbert | link | issue22453 messages |
2014-09-21 16:26:08 | Chris.Colbert | create | |
|