Menu

[r7978]: / branches / mathtex / unit / override_builtins.py  Maximize  Restore  History

Download this file

18 lines (13 with data), 375 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
import sys
def check_globals():
for key in globals().keys():
if key in dir(sys.modules["__builtin__"]):
if globals()[key] != getattr(sys.modules["__builtin__"],key):
print "'%s' was overridden in globals()."%key
print "before pylab import"
check_globals()
print
from pylab import *
print "after pylab import"
check_globals()
print
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.