Commit 1b4b2bf
committed
adding CrazyLocals for importing stuff automatically
So, this is a really bad idea.
This makes names from sys.modules magically available without
needing to import them.
It does that by replacing the locals dict by a dict subclass that looks
up names in sys.modules when they're not present in current locals.
Please do NOT merge!
But have fun. :)1 parent b30efb8 commit 1b4b2bf
1 file changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
64 | 79 | | |
65 | 80 | | |
66 | 81 | | |
| |||
75 | 90 | | |
76 | 91 | | |
77 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
78 | 96 | | |
79 | 97 | | |
80 | 98 | | |
| |||
0 commit comments