Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #39663 > unrolled thread

Altering sys.stdin

Started byDraic Kin <drekin@gmail.com>
First post2013-02-23 14:00 +0100
Last post2013-02-23 14:00 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Altering sys.stdin Draic Kin <drekin@gmail.com> - 2013-02-23 14:00 +0100

#39663 — Altering sys.stdin

FromDraic Kin <drekin@gmail.com>
Date2013-02-23 14:00 +0100
SubjectAltering 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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web