There was an error while loading. Please reload this page.
1 parent 98bc1d4 commit 8037758Copy full SHA for 8037758
1 file changed
Objects/typeobject.c
@@ -809,8 +809,7 @@ _PyType_GetSubclasses(PyTypeObject *self)
809
810
// The type lock protects tp_subclasses from being mutated while we
811
// iterate over it (e.g. by add_subclass() or by remove_subclass() when a
812
- // subclass is deallocated). Note that the lock is not actually acquired
813
- // if it is already held by this thread or if the world is stopped.
+ // subclass is deallocated).
814
int res;
815
BEGIN_TYPE_LOCK();
816
res = get_subclasses_unlocked(self, list);
0 commit comments