This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients ezio.melotti, vstinner
Date 2009-01-30.15:57:25
SpamBayes Score 0.00025451626
Marked as misclassified No
Message-id <1233331047.31.0.759914829027.issue5110@psf.upfronthosting.co.za>
In-reply-to
Content
Oh yeah, original sys.displayhook uses a special hack for the _ global 
variable:
---------
import sys
import builtins

def hook(message):
    if message is None:
        return
    builtins._ = message
    print(ascii(message))

sys.displayhook = hook
---------
History
Date User Action Args
2009-01-30 15:57:27vstinnersetrecipients: + vstinner, ezio.melotti
2009-01-30 15:57:27vstinnersetmessageid: <1233331047.31.0.759914829027.issue5110@psf.upfronthosting.co.za>
2009-01-30 15:57:25vstinnerlinkissue5110 messages
2009-01-30 15:57:25vstinnercreate