Message373481
| Author |
arcivanov |
| Recipients |
BTaskaya, arcivanov, dino.viehland, vstinner |
| Date |
2020年07月10日.20:59:10 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1594414750.6.0.142347854646.issue41261@roundup.psfhosted.org> |
| In-reply-to |
| Content |
> If sys.modules['_ast'] is cleared and then _ast is imported again, _PyState_AddModule() is called to store the new _ast module instance which calls astmodule_clear() on the old module instance.
I'm confused about this. In the repro below the sys.modules.clear() is indeed cleared, but references to all modules are retained.
Where is the garbage collection/module re-initialization coming from? All of the references are live. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2020年07月10日 20:59:10 | arcivanov | set | recipients:
+ arcivanov, vstinner, dino.viehland, BTaskaya |
| 2020年07月10日 20:59:10 | arcivanov | set | messageid: <1594414750.6.0.142347854646.issue41261@roundup.psfhosted.org> |
| 2020年07月10日 20:59:10 | arcivanov | link | issue41261 messages |
| 2020年07月10日 20:59:10 | arcivanov | create |
|