![](https://secure.gravatar.com/avatar/d6b9415353e04ffa6de5a8f3aaea0553.jpg?s=120&d=mm&r=g)
March 31, 2013
3:23 p.m.
On 3/31/2013 3:52 AM, Terry Reedy wrote:
For an rc patch, the safest temporary patch would be to start .__call__ with
if sys.stdin.__name__ == 'PseudoInputFile': sys.stdin.close()
I would have to check that the name is correct as seen in the user process (cannot at moment).
In addition, idlelib.PyShell.PseudoInputFile needs a .close method + def close(self): + self.shell.close() + http://bugs.python.org/issue17585 -- Terry Jan Reedy