Bugs item #1096310, was opened at 2005-01-05 10:18
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1096310&group_id=5470

Category: Documentation
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Just van Rossum (jvr)
Assigned to: Nobody/Anonymous (nobody)
Summary: sys.__stdout__ doco isn't discouraging enough

Initial Comment:
sys.__stdout__ is quite often abused (two independent sightings on 
c.l.py yesterday): people use it to restore stdout instead of saving 
the previous stdout.

The real intended use for __stdout__ isn't all that clear (I keep 
wondering myself why it's there in the first place; its use case 
must be quite obscure), but more importantly I think the sys docs 
should contain a warning that __stdout__ is *not* suitable to 
restore sys.stdout after redirection.

I'd produce a patch if I knew how to better describe what 
sys.__stdout__ was *for*.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1096310&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to