This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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

Created on 2021-06-16 06:44 by blackandred, last changed 2022-04-11 14:59 by admin.

Repositories containing patches
https://github.com/blackandred/python-bug-sourcefileloader
Messages (1)
msg395908 - (view) Author: Andrew Johnson (blackandred) Date: 2021-06-16 06:44
Hi,

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)
https://github.com/blackandred/python-bug-sourcefileloader
History
Date User Action Args
2022-04-11 14:59:46adminsetgithub: 88598
2021-06-16 06:44:26blackandredcreate