[New-bugs-announce] [issue44432] SourceFileLoader.load_module() is mixing content of previosly loaded files

Andrew Johnson report at bugs.python.org
Wed Jun 16 02:44:26 EDT 2021


New submission from Andrew Johnson <wesoly.krzysztofa at gmail.com>:

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

----------
hgrepos: 406
messages: 395908
nosy: blackandred
priority: normal
severity: normal
status: open
title: SourceFileLoader.load_module() is mixing content of previosly loaded files
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44432>
_______________________________________


More information about the New-bugs-announce mailing list