Re: [Python-Dev] Idle, site.py, and the release candidates

2013-03-31 Thread Antoine Pitrou
On Sun, 31 Mar 2013 11:38:07 -0400 Terry Jan Reedy wrote: > On 3/31/2013 6:01 AM, Antoine Pitrou wrote: > > > That said, if IDLE users expect those global functions, perhaps IDLE > > should define its own ones rather than rely on site.py. > > I thought of that. Idle would have to check the begi

Re: [Python-Dev] Idle, site.py, and the release candidates

2013-03-31 Thread Terry Jan Reedy
On 3/31/2013 6:01 AM, Antoine Pitrou wrote: That said, if IDLE users expect those global functions, perhaps IDLE should define its own ones rather than rely on site.py. I thought of that. Idle would have to check the beginning of every statement before sending it to the user process, which wo

Re: [Python-Dev] Idle, site.py, and the release candidates

2013-03-31 Thread Terry Jan Reedy
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, idlel

Re: [Python-Dev] Idle, site.py, and the release candidates

2013-03-31 Thread Antoine Pitrou
On Sat, 30 Mar 2013 22:34:32 -0400 Terry Jan Reedy wrote: > > I do not know enough about other circumstances in which stdin.fileno > would do something other than return 0 to be sure of what the proper fix > would be. > (I increasingly dislike bare excepts as they hide the > thinking and knowl

Re: [Python-Dev] Idle, site.py, and the release candidates

2013-03-31 Thread Terry Reedy
On 3/31/2013 2:39 AM, Nick Coghlan wrote: On Sun, Mar 31, 2013 at 12:34 PM, Terry Jan Reedy > I do not know enough about other circumstances in which stdin.fileno would do something other than return 0 to be sure of what the proper fix would be. (I increasin

Re: [Python-Dev] Idle, site.py, and the release candidates

2013-03-30 Thread Nick Coghlan
On Sun, Mar 31, 2013 at 12:34 PM, Terry Jan Reedy wrote: > While trying to test the patch for > http://bugs.python.org/**issue5492 > on Windows, I discovered that quit() and exit() in the Idle Shell are now > disabled, it seems, for all versions on all systems r