On 4/27/2012 4:55 AM, Stefan Behnel wrote:
I want the script
itself to update a window in the host application (via the extension) every
time the script calls print().
Then replace sys.stdout (and maybe also sys.stderr) by another object that
does what you want whenever its write() method is called.
This is essentially what Idle does to display python output to its window.
>>> import sys; sys.stdout
<idlelib.rpc.RPCProxy object at 0x0000000003250AC8>
--
Terry Jan Reedy
--
http://mail.python.org/mailman/listinfo/python-list