Message38872
Logged In: YES
user_id=6324
When in interactive mode, if the user changes
sys.std[in|out], would you agree that the interpreter should
continue using C std[in|out] to get commands? (this is the
current behavior without my patch)
The documentation for sys.std[in|out|err] seem to suggest
one should be able to redirect them, but I'm not sure that's
actually desirable.
(Your example only crashes if the interpreter is in
interactive mode.)
I've included another patch assuming this is the desired
behavior. I tried several permutations of interactive vs
non-interactive, setting sys.stdin and/or sys.stdout to
None, and doing this before and after initializing readline. |
|
Date |
User |
Action |
Args |
2007-08-23 15:10:51 | admin | link | issue512981 messages |
2007-08-23 15:10:51 | admin | create | |
|