Author vstinner
Recipients BTaskaya, arcivanov, dino.viehland, pablogsal, vstinner
Date 2020-07-02.15:34:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1593704088.95.0.359343404151.issue41194@roundup.psfhosted.org>
In-reply-to
Content
I can reproduce the crash using the following script.py:
---
import gc; gc.set_threshold(5)
import sys

old_modules = dict(sys.modules)
sys.modules.clear()
sys.modules.update(old_modules)

import _ast
import gc
gc.collect()
---

And the command:
---
./python -i < script.py
---

PyInit__ast() is called twice. That's surprising: builtin extension modules should only be initialized once.
History
Date User Action Args
2020-07-02 15:34:48vstinnersetrecipients: + vstinner, dino.viehland, arcivanov, pablogsal, BTaskaya
2020-07-02 15:34:48vstinnersetmessageid: <1593704088.95.0.359343404151.issue41194@roundup.psfhosted.org>
2020-07-02 15:34:48vstinnerlinkissue41194 messages
2020-07-02 15:34:48vstinnercreate