[issue40260] modulefinder traceback regression starting on Windows

Steve Dower report at bugs.python.org
Wed Apr 15 17:58:17 EDT 2020


Steve Dower <steve.dower at python.org> added the comment:

The 3.8 behaviour is clearly broken, so backporting is fine. Also, io.open_code() is a security feature.

The core of the issue is that apparently load_module() is a public API, and the file_info parameter used to be a 3-tuple and is now a 2-tuple.

AFAICT, the fix should restore the 3-tuple everywhere and just ignore the mode parameter. The test should pass in a 3-tuple and make sure that it doesn't crash like this.

----------

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


More information about the Python-bugs-list mailing list