summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libpython.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/libpython.py b/libpython.py
index c045fa9..e353379 100644
--- a/libpython.py
+++ b/libpython.py
@@ -286,7 +286,8 @@ class PyInstanceObjectPtr(PyObjectPtr):
self.address = address
def __repr__(self):
- return '<%s(%s) at remote 0x%x>' % (self.cl_name, self.attrdict, self.address)
+ kwargs = ', '.join(["%s=%r"%(arg, val) for arg, val in self.attrdict.iteritems()])
+ return '<%s(%s) at remote 0x%x>' % (self.cl_name, kwargs, self.address)
# Get name of class:
in_class = PyObjectPtr.from_pyobject_ptr(self.field('in_class'))