Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78e59fd commit c04a6f1Copy full SHA for c04a6f1
1 file changed
unit/override_builtins.py
@@ -0,0 +1,17 @@
1
+import sys
2
+
3
+def check_globals():
4
+ for key in globals().keys():
5
+ if key in dir(sys.modules["__builtin__"]):
6
+ if globals()[key] != getattr(sys.modules["__builtin__"],key):
7
+ print "'%s' was overridden in globals()."%key
8
9
+print "before pylab import"
10
+check_globals()
11
+print
12
13
+from pylab import *
14
15
+print "after pylab import"
16
17
0 commit comments