
April 13, 2021
11:03 p.m.
I'm afraid that I misunderstood your previous mail. When you said " it was basically not possible to unload a C extension.", it means that we can't delete the module from sys.modules (del sys.modules['_abc'])?
Kun
Victor Stinner <vstinner@python.org> 于2021年4月14日周三 上午12:35写道:
The message "it's the free function" of m_free is not printed at all, but the module can be deleted as well.
Maybe it's not deleted immediately and you must call gc.collect() to force a GC collection.
Victor