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.

Author steve.dower
Recipients Anthony Sottile, barry-scott, brandtbucher, miss-islington, paul.moore, python-dev, steve.dower, tim.golden, zach.ware
Date 2020-04-15.21:58:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586987897.44.0.488123333244.issue40260@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-04-15 21:58:17steve.dowersetrecipients: + steve.dower, barry-scott, paul.moore, tim.golden, python-dev, zach.ware, Anthony Sottile, miss-islington, brandtbucher
2020-04-15 21:58:17steve.dowersetmessageid: <1586987897.44.0.488123333244.issue40260@roundup.psfhosted.org>
2020-04-15 21:58:17steve.dowerlinkissue40260 messages
2020-04-15 21:58:17steve.dowercreate