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 <>
@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:

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

Even though "A" is pickleable, IDLE gets stuck trying to write to stdout. In, Executive.runcode gets stuck on "exec(code, self.locals)", and is not interruptable. Restarting the shell makes the IDLE shell responsive again to commands.
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: <>
2012-06-11 21:13:21roger.serwylinkissue13532 messages
2012-06-11 21:13:20roger.serwycreate