Peter Kleiweg <pklei...@xs4all.nl> added the comment:

Pierre Quentel wrote:
- get the binary layer of stdout : out = sys.stdout.detach()

You can't do that! That makes sys.stdout unavaible to the program that is 
importing the cgi module.

Cgi should access and process sys.stdin only, as binary by means of 
sys.stdin.detach()

The cgi module is used to handle form data and uploaded files. But the 
resulting page is usually written by the main program or another module, using 
sys.stdout

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue4953>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to