Roger Serwy <roger.se...@gmail.com> added the comment: @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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13532> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com