commit 26bf0daec5e289aed38256b21a2c42565896f258 Author: David Malcolm dmalcolm@redhat.com Date: Fri Sep 2 16:00:13 2011 -0400
cpychecker: implement PyObject_Repr
libcpychecker/refcounts.py | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) --- diff --git a/libcpychecker/refcounts.py b/libcpychecker/refcounts.py index efb2f93..0cf4d52 100644 --- a/libcpychecker/refcounts.py +++ b/libcpychecker/refcounts.py @@ -1087,6 +1087,15 @@ class MyState(State): t_failure.dest.set_exception('PyExc_MemoryError') return [t_success, t_failure]
+ def impl_PyObject_Repr(self, stmt): + # Declared in object.h as: + # PyAPI_FUNC(PyObject *) PyObject_Repr(PyObject *); + # Docs: + # http://docs.python.org/c-api/object.html#PyObject_Repr + newobj, t_success, t_failure = self.impl_object_ctor(stmt, + 'PyStringObject', 'PyString_Type') + return [t_success, t_failure] + def impl_PyObject_Str(self, stmt): # Declared in object.h as: # PyAPI_FUNC(PyObject *) PyObject_Str(PyObject *);
gcc-python-plugin-commits@lists.stg.fedorahosted.org