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-22.17:12:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587575535.26.0.756674646765.issue40260@roundup.psfhosted.org>
In-reply-to
Content
If we want to be strictly correct here, the fix should check the "mode" variable to determine the type. And given the fragility of the code being used here, there's no doubt some reliance on a trailing newline somewhere too.

I haven't bumped the categorisation, but at some level this is a security fix. All executable code is expected to be loaded through io.open_code(), and the fact that this didn't was a breach of that guarantee. There's a limit to how much we will accommodate people using it outside of what's documented.

Anthony, since you can apparently validate this, could you run through all the fixes necessary to keep that working? I want to stop this game of chasing, either by fixing everything in one go or by apologising for the breakage (the io.open_code() fix is staying).
History
Date User Action Args
2020-04-22 17:12:15steve.dowersetrecipients: + steve.dower, barry-scott, paul.moore, tim.golden, python-dev, zach.ware, Anthony Sottile, miss-islington, brandtbucher
2020-04-22 17:12:15steve.dowersetmessageid: <1587575535.26.0.756674646765.issue40260@roundup.psfhosted.org>
2020-04-22 17:12:15steve.dowerlinkissue40260 messages
2020-04-22 17:12:15steve.dowercreate