Message47099
Logged In: YES
user_id=488897
I have found a solution for the problem described below
("python -i < inputfile.py" behaves differently). The
solution was to use _isatty to check if stdin is redirected,
and check for keyboard input only if stdin is not
redirected. With the latest version of this patch
(20050728), there are no changes in Python's behaviour on
Windows or Unix (except that PyOS_InputHook is called ten
times per second, which is what this patch intends to
solve). I apologize for the fact that multiple iterations
were needed to converge to the right (I hope) solution for
this bug. |
|
Date |
User |
Action |
Args |
2007-08-23 15:40:15 | admin | link | issue1049855 messages |
2007-08-23 15:40:15 | admin | create | |
|