| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 94260ae commit bd6d847
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -80,8 +80,7 @@ public static IntPtr tp_descr_get(IntPtr op, IntPtr instance, IntPtr owner) | |||
| 80 | 80 | return Exceptions.RaiseTypeError("How in the world could that happen!"); | |
| 81 | 81 | } | |
| 82 | 82 | }*/ | |
| 83 | - /* Since ExtensionType calls Runtime.PyObject_GC_UnTrack(py), don't | ||
| 84 | - Runtime.Incref(self.pyHandle); // Decref'd by the interpreter??? */ | ||
| 83 | + Runtime.Incref(self.pyHandle); // Decref'd by the interpreter. | ||
| 85 | 84 | return self.pyHandle; | |
| 86 | 85 | } | |
| 87 | 86 | ||
@@ -112,7 +111,7 @@ public static IntPtr mp_subscript(IntPtr op, IntPtr key) { | |||
| 112 | 111 | } | |
| 113 | 112 | BoundContructor boundCtor = new BoundContructor(self.type, self.pyTypeHndl, self.ctorBinder, ci); | |
| 114 | 113 | ||
| 115 | - /* Since ExtensionType calls Runtime.PyObject_GC_UnTrack(py), don't | ||
| 114 | + /* Since nothing's chached, do we need the increment??? | ||
| 116 | 115 | Runtime.Incref(boundCtor.pyHandle); // Decref'd by the interpreter??? */ | |
| 117 | 116 | return boundCtor.pyHandle; | |
| 118 | 117 | } | |
@@ -128,7 +127,7 @@ public static IntPtr tp_repr(IntPtr ob) { | |||
| 128 | 127 | return self.repr; | |
| 129 | 128 | } | |
| 130 | 129 | MethodBase[] methods = self.ctorBinder.GetMethods(); | |
| 131 | - string name = self.type.Name; | ||
| 130 | + string name = self.type.FullName; | ||
| 132 | 131 | string doc = ""; | |
| 133 | 132 | for (int i = 0; i < methods.Length; i++) { | |
| 134 | 133 | if (doc.Length > 0) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments