[issue17863] Bad sys.stdin assignment hands interpreter.

2013-04-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: In searching for an existing issue about this, there seemed to be other edge-case stdin problems. I don't think that they were all usage errors. This problem was revealed by an accidental usage error that should have lain dormant until an exception was raised

[issue17863] Bad sys.stdin assignment hands interpreter.

2013-04-28 Thread R. David Murray
R. David Murray added the comment: Indeed, in both 3.3.0 non-debug and 3.4 tip debug, python starts consuming 100% of the CPU. I'm guessing there is some subtlety involving the new IO system involved here. Python 2.7 debug build acts as you indicate for your 2.7 non-debug build. All my tests

[issue17863] Bad sys.stdin assignment hands interpreter.

2013-04-28 Thread Terry J. Reedy
New submission from Terry J. Reedy: This appears to be Python 3 specific. On 2.7.4 (Win7): >>> import sys >>> sys.stdin='abd' >>> With fresh 3.4 repository debug build, prompt never appears, ^C, ^D are ignored. Must close with window's [X] button. With fresh 3.3, get repeated [62312 refs] line