We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4afa4bd commit 66ddf97Copy full SHA for 66ddf97
src/runtime/clrobject.cs
@@ -14,17 +14,6 @@ internal CLRObject(object ob, IntPtr tp)
14
System.Diagnostics.Debug.Assert(tp != IntPtr.Zero);
15
IntPtr py = Runtime.PyType_GenericAlloc(tp, 0);
16
17
- long flags = Util.ReadCLong(tp, TypeOffset.tp_flags);
18
- if ((flags & TypeFlags.Subclass) != 0)
19
- {
20
- IntPtr dict = Marshal.ReadIntPtr(py, ObjectOffset.TypeDictOffset(tp));
21
- if (dict == IntPtr.Zero)
22
23
- dict = Runtime.PyDict_New();
24
- Marshal.WriteIntPtr(py, ObjectOffset.TypeDictOffset(tp), dict);
25
- }
26
27
-
28
GCHandle gc = AllocGCHandle(TrackTypes.Wrapper);
29
Marshal.WriteIntPtr(py, ObjectOffset.magic(tp), (IntPtr)gc);
30
tpHandle = tp;
0 commit comments