Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #39663 > unrolled thread
| Started by | Draic Kin <drekin@gmail.com> |
|---|---|
| First post | 2013-02-23 14:00 +0100 |
| Last post | 2013-02-23 14:00 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
Altering sys.stdin Draic Kin <drekin@gmail.com> - 2013-02-23 14:00 +0100
| From | Draic Kin <drekin@gmail.com> |
|---|---|
| Date | 2013-02-23 14:00 +0100 |
| Subject | Altering sys.stdin |
| Message-ID | <mailman.2340.1361624464.2939.python-list@python.org> |
[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 top | Article view | comp.lang.python
csiph-web