Steve Dower <steve.do...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue40260>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to