Message 80825 - Python tracker (original) (raw)
Message80825
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:27 | vstinner | set | recipients: + vstinner, ezio.melotti |
2009-01-30 15:57:27 | vstinner | set | messageid: 1233331047.31.0.759914829027.issue5110@psf.upfronthosting.co.za |
2009-01-30 15:57:25 | vstinner | link | issue5110 messages |
2009-01-30 15:57:25 | vstinner | create |