| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -260,6 +260,7 @@ public static IntPtr tp_repr(IntPtr ob) | |||
| 260 | 260 | ||
| 261 | 261 | //otherwise use the standard object.__repr__(inst) | |
| 262 | 262 | IntPtr args = Runtime.PyTuple_New(1); | |
| 263 | + Runtime.XIncref(ob); | ||
| 263 | 264 | Runtime.PyTuple_SetItem(args, 0, ob); | |
| 264 | 265 | IntPtr reprFunc = Runtime.PyObject_GetAttrString(Runtime.PyBaseObjectType, "__repr__"); | |
| 265 | 266 | var output = Runtime.PyObject_Call(reprFunc, args, IntPtr.Zero); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments