Title: SourceFileLoader.load_module() is mixing content of previosly loaded files
Type: Stage:
Components: Versions: Python 3.9
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: blackandred
Priority: normal Keywords:

Created on 2021-06-16 06:44 by blackandred, last changed 2021-06-16 06:44 by blackandred.

Repositories containing patches
Messages (1)
msg395908 - (view) Author: Andrew Johnson (blackandred) Date: 2021-06-16 06:44

I'm loading multiple files in same convention - same filename, as a part of creating a build system. I can compare the case to the loading multple configuration files for various plugins in the application, the file contents of multiple files from different directories are mixed together which looks dangerous.

Here is a reproducible case for Python 3.9.4 (running on Arch Linux)
Date User Action Args
2021-06-16 06:44:26blackandredcreate