
Aug. 24, 2020
7:43 a.m.
On Sat, Aug 22, 2020, at 20:17, Chris Angelico wrote:
A speed drawback on every import would almost certainly be too high a price to pay.
My proposal would only add an extra check 1) on module load [not on import, so you only pay it once per module, and not at all for built-in modules] 2) only for modules loaded from the first entry in sys.path [script directory / current directory], so it shouldn't add much overhead at all to imports of stdlib or installed packages.