Daniel Diniz <[EMAIL PROTECTED]> added the comment:
I don't think it should stop using raw_input just because you changed
stdin, as you can change it to something that will work with raw_input.
Consider:
>>> import sys
>>> sys.stdin = open("/dev/tty")
>>> raw_input()
a
'a'
You can tie it to any object (e.g. a GUI input) that supports the file
protocol and keep using raw_input. Or change Cmd.use_rawinput to 0 to
use stdin.readline directly.
On a related issue. Cmd.use_rawinput should be "True", not 1...
----------
nosy: +ajaksu2
__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2571>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com