STINNER Victor <> added the comment:

FYI importlib leak was fixed in bpo-40050 by:

commit 83d46e0622d2efdf5f3bf8bf8904d0dcb55fc322
Author: Victor Stinner <>
Date:   Tue Mar 24 18:03:34 2020 +0100

    bpo-40050: Fix importlib._bootstrap_external (GH-19135)
    Remove two unused imports: _thread and _weakref. Avoid creating a new
    winreg builtin module if it's already available in sys.modules.
    The winreg module is now stored as "winreg" rather than "_winreg".

resolution:  -> fixed
stage: commit review -> resolved
status: open -> closed

Python tracker <>
Python-bugs-list mailing list

Reply via email to