2011-06-19 | Paul Boddie | raw files shortlog changelog graph | Expose the builtins through a variable. | |
test.py (file) |
1.1 --- a/test.py Tue Jun 14 01:06:45 2011 +0200 1.2 +++ b/test.py Sun Jun 19 02:01:51 2011 +0200 1.3 @@ -57,6 +57,7 @@ 1.4 m = i.load_from_file(filename) 1.5 1.6 p.finalise() 1.7 + b = i.get_module("__builtins__") 1.8 1.9 # Make a report. 1.10 1.11 @@ -101,6 +102,7 @@ 1.12 print "Importer: i = %r" % i 1.13 print "Program: p = %r" % p 1.14 print "Module: m = %r" % m 1.15 + print "Built-ins: b = %r" % b 1.16 1.17 # Report any errors. 1.18