We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2039e69 commit fe5050dCopy full SHA for fe5050d
src/runtime/classbase.cs
@@ -260,6 +260,7 @@ public static IntPtr tp_repr(IntPtr ob)
260
261
//otherwise use the standard object.__repr__(inst)
262
IntPtr args = Runtime.PyTuple_New(1);
263
+ Runtime.XIncref(ob);
264
Runtime.PyTuple_SetItem(args, 0, ob);
265
IntPtr reprFunc = Runtime.PyObject_GetAttrString(Runtime.PyBaseObjectType, "__repr__");
266
var output = Runtime.PyObject_Call(reprFunc, args, IntPtr.Zero);
0 commit comments