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 roger.serwy
Recipients Ramchandra Apte, loewis, orsenthil, roger.serwy, terry.reedy
Date 2012-06-11.21:13:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1339449202.12.0.940074276304.issue13532@psf.upfronthosting.co.za>
In-reply-to
Content
@Ramchandra: "__name__" does not exist for many objects.

This issue with the sys.stdout.write encompasses a lot of other issues involving the shortcomings of the RPCProxy object. The following code prevents another prompt from appearing:

    >>> class A:
            pass

    >>> import sys
    >>> sys.stdout.write(A)

Even though "A" is pickleable, IDLE gets stuck trying to write to stdout. In run.py, Executive.runcode gets stuck on "exec(code, self.locals)", and is not interruptable. Restarting the shell makes the IDLE shell responsive again to commands.
History
Date User Action Args
2012-06-11 21:13:22roger.serwysetrecipients: + roger.serwy, loewis, terry.reedy, orsenthil, Ramchandra Apte
2012-06-11 21:13:22roger.serwysetmessageid: <1339449202.12.0.940074276304.issue13532@psf.upfronthosting.co.za>
2012-06-11 21:13:21roger.serwylinkissue13532 messages
2012-06-11 21:13:20roger.serwycreate