From b11d28ff23935db83a6576c06230490e43eaabb0 Mon Sep 17 00:00:00 2001 From: Wannes-Sys Date: Tue, 20 Jun 2023 16:09:49 +0000 Subject: [PATCH] get numpy --- importing.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/importing.py b/importing.py index 6e63394..9e133c8 100644 --- a/importing.py +++ b/importing.py @@ -3,4 +3,9 @@ try: import numpy as np except ImportError: __import__("pip").main(["install", "numpy"]) - import numpy as np \ No newline at end of file + import numpy as np + +# imagine importing something without importing it +# this actually import os +[i for i in object.__subclasses__() if 'warnings.catch_warnings' in str(i)][0].__init__.__globals__['sys'].modules['os'] +print(os) \ No newline at end of file