This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | ajaksu2 |
|---|---|
| Recipients | ajaksu2, rickbking |
| Date | 2008年04月07日.19:48:58 |
| SpamBayes Score | 0.37697878 |
| Marked as misclassified | No |
| Message-id | <1207597739.54.0.851209464691.issue2571@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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... |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年04月07日 19:48:59 | ajaksu2 | set | spambayes_score: 0.376979 -> 0.37697878 recipients: + ajaksu2, rickbking |
| 2008年04月07日 19:48:59 | ajaksu2 | set | spambayes_score: 0.376979 -> 0.376979 messageid: <1207597739.54.0.851209464691.issue2571@psf.upfronthosting.co.za> |
| 2008年04月07日 19:48:58 | ajaksu2 | link | issue2571 messages |
| 2008年04月07日 19:48:58 | ajaksu2 | create | |