Amaury Forgeot d'Arc added the comment:

> As far as I can see print() works if sys.stdout is either None
> (discard output ASAP) or a file like object. Even
> print(file=syst.stderr) works.

Ah, I prefer this.

> sys.stdout.write() is going to fail when sys.stdout is None 
> but that's not my concern. 

It's not very important indeed.

I'm happy with the current behaviour. Let's close this issue.

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1415>
__________________________________
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to