Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cc8fe04

Browse files
committed
Inherit tp_new and tp_is_gc.
Bugfix candidate.
1 parent 2d7e264 commit cc8fe04

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Objects/typeobject.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2024,6 +2024,8 @@ inherit_slots(PyTypeObject *type, PyTypeObject *base)
20242024
COPYSLOT(tp_init);
20252025
COPYSLOT(tp_alloc);
20262026
COPYSLOT(tp_free);
2027+
COPYSLOT(tp_new);
2028+
COPYSLOT(tp_is_gc);
20272029
}
20282030
}
20292031

0 commit comments

Comments
 (0)