]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-33331: Clean modules in the reversed order in PyImport_Cleanup(). (GH-6565)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 29 Oct 2018 17:30:16 +0000 (19:30 +0200)
committerGitHub <noreply@github.com>
Mon, 29 Oct 2018 17:30:16 +0000 (19:30 +0200)
commitc93c58b5d560cfe44d9884ff02c9b18e06333360
tree5a52914e13a0d5990b3644a61da2e7d948d655e8
parent542497aa9f71c664768c3d5b7398c03679d3a7e1
bpo-33331: Clean modules in the reversed order in PyImport_Cleanup(). (GH-6565)

Modules imported last are now cleared first at interpreter shutdown.

A newly imported module is moved to the end of sys.modules, behind
modules on which it depends.
Lib/importlib/_bootstrap.py
Misc/NEWS.d/next/Core and Builtins/2018-04-22-13-41-59.bpo-33331.s_DxdL.rst [new file with mode: 0644]
Python/import.c
Python/importlib.h