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.
This commit is contained in:
Serhiy Storchaka 2018-10-29 19:30:16 +02:00 committed by GitHub
parent 542497aa9f
commit c93c58b5d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 1818 additions and 1850 deletions

3542
Python/importlib.h generated

File diff suppressed because it is too large Load diff