# HG changeset patch # User Paul Boddie # Date 1308441711 -7200 # Node ID c6d14167bc209655c36ec5c3fb067ff9c675202e # Parent 1964e5898e68087e5d929f11ee84e1812e93a6dc Expose the builtins through a variable. diff -r 1964e5898e68 -r c6d14167bc20 test.py --- a/test.py Tue Jun 14 01:06:45 2011 +0200 +++ b/test.py Sun Jun 19 02:01:51 2011 +0200 @@ -57,6 +57,7 @@ m = i.load_from_file(filename) p.finalise() + b = i.get_module("__builtins__") # Make a report. @@ -101,6 +102,7 @@ print "Importer: i = %r" % i print "Program: p = %r" % p print "Module: m = %r" % m + print "Built-ins: b = %r" % b # Report any errors.