News for hackers. Stuff that matters.
Re:Never run ‘python’ in your downloads folder by yzmtf2008 on Sunday August 23, 2020 @06:55PM (#24255983)
> To do that on a module, you have to first import that module - and then all the imports at the top of it would've already run.

Why not just replace the `__import__` function at program startup, when you haven't imported anything? Monkey patching `__import__` at any other time seems like a bad idea.

There are no comments on this comment yet.