Minor Changes
Interactive Display Hook
sys.displayhook(obj)
Used to print results evaluated in interactive interpreter
>>> 3+4 7 >>> def foo(x): ... print "result =", x >>> sys.displayhook = foo >>> 3+4 result = 7 >>>
<<<
O'Reilly OSCON 2001, New Features in Python 2, Slide 45
July 26, 2001, beazley@cs.uchicago.edu
>>>