Author steve.dower
Recipients FFY00, frenzy, hroncok, jaraco, petr.viktorin, steve.dower
Date 2021-05-04.20:02:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The best option for restricting the import while still having it be a Python import is to find the file (if it's present in the expected location under sys.whatever), and then use importlib to import it:

I'd rather not have a new option here, I would much prefer "-S" in this context to mean "run Python with only core libraries" and "-s" to mean "run Python with only core and distro libraries" (and neither to mean "run Python with core, distro and user libraries").

That may be a bigger change, but there's enough angst around this issue that we would be better off getting it right this time, even if it changes things, than continuing to preserve the system that people dislike so much.
Date User Action Args
2021-05-04 20:02:01steve.dowersetrecipients: + steve.dower, jaraco, petr.viktorin, hroncok, frenzy, FFY00
2021-05-04 20:02:01steve.dowersetmessageid: <>
2021-05-04 20:02:01steve.dowerlinkissue43976 messages
2021-05-04 20:02:01steve.dowercreate