Message372863
| 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. |
|