Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #39663
| Date | 2013-02-23 14:00 +0100 |
|---|---|
| Subject | Altering sys.stdin |
| From | Draic Kin <drekin@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2340.1361624464.2939.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
Hello, it seems that Python interactive console actually doesn't use sys.stdin to read input (it just affects e.g. input() function). However it uses sys.stdin.encoding. Intepreter actually freezes when an object without encoding attribute is assigned to sys.stdin. Why is that? I that a correct behavior? Is there any workaround to alter input object for interactive console? Thank you, Drekin
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Altering sys.stdin Draic Kin <drekin@gmail.com> - 2013-02-23 14:00 +0100
csiph-web