Message 165292 - Python tracker

Message165292

Author serhiy.storchaka
Recipients loewis, roger.serwy, serhiy.storchaka, terry.reedy
Date 2012-07-12.09:13:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1342084453.14309.35.camel@raxxla>
In-reply-to <1342053206.78.0.533392752216.issue15318@psf.upfronthosting.co.za>
Content
> sys.stdin.write returns the wrong error message when passed a non-string. Presently it returns io.UnsupportedOperation instead of TypeError: must be str, not ...

It's not a bug. sys.stdin.write raises io.UnsupportedOperation in
standard interpreter.
History
Date User Action Args
2012-07-12 09:13:45serhiy.storchakasetrecipients: + serhiy.storchaka, loewis, terry.reedy, roger.serwy
2012-07-12 09:13:45serhiy.storchakalinkissue15318 messages
2012-07-12 09:13:45serhiy.storchakacreate