| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -146,6 +146,13 @@ public static IntPtr tp_repr(IntPtr ob) | |||
| 146 | 146 | self.Dealloc(); | |
| 147 | 147 | } | |
| 148 | 148 | ||
| 149 | + public static int tp_clear(IntPtr ob) | ||
| 150 | + { | ||
| 151 | + var self = (ConstructorBinding)GetManagedObject(ob); | ||
| 152 | + Runtime.Py_CLEAR(ref self.repr); | ||
| 153 | + return 0; | ||
| 154 | + } | ||
| 155 | + | ||
| 149 | 156 | public static int tp_traverse(IntPtr ob, IntPtr visit, IntPtr arg) | |
| 150 | 157 | { | |
| 151 | 158 | var self = (ConstructorBinding)GetManagedObject(ob); | |
@@ -241,6 +248,13 @@ public static IntPtr tp_repr(IntPtr ob) | |||
| 241 | 248 | self.Dealloc(); | |
| 242 | 249 | } | |
| 243 | 250 | ||
| 251 | + public static int tp_clear(IntPtr ob) | ||
| 252 | + { | ||
| 253 | + var self = (BoundContructor)GetManagedObject(ob); | ||
| 254 | + Runtime.Py_CLEAR(ref self.repr); | ||
| 255 | + return 0; | ||
| 256 | + } | ||
| 257 | + | ||
| 244 | 258 | public static int tp_traverse(IntPtr ob, IntPtr visit, IntPtr arg) | |
| 245 | 259 | { | |
| 246 | 260 | var self = (BoundContructor)GetManagedObject(ob); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -903,7 +903,6 @@ public static IntPtr CreateObjectType() | |||
| 903 | 903 | ||
| 904 | 904 | static partial class SlotTypes | |
| 905 | 905 | { | |
| 906 | - private static Dictionary<string, Type> _typeMap = new Dictionary<string, Type>(); | ||
| 907 | 906 | private static Dictionary<string, Type> _nameMap = new Dictionary<string, Type>(); | |
| 908 | 907 | ||
| 909 | 908 | static SlotTypes() | |
| Back | FazBrowse Home | New Git URL |
0 commit comments