Author quentel
Recipients amaury.forgeotdarc, barry, eric.araujo, erob, flox, ggenellina, gvanrossum, oopos, pebbe, pitrou, quentel, r.david.murray, tcourbon, tercero12, tobias, v+python, vstinner
Date 2011-01-07.08:14:24
SpamBayes Score 3.86057e-09
Marked as misclassified No
Message-id <1294388067.8.0.33737975649.issue4953@psf.upfronthosting.co.za>
In-reply-to
Content
Option 1 is impossible, because the CGI script sometimes has no control on the stream : for instance on a shared web host, it will receive sys.stdin as a text stream

I also vote for option 3 ; explaining that if no argument is passed, the program will use sys.stdin.buffer (or the result of sys.stdin.detach() : I guess it's the same ?), and that if an argument is passed, it must provide an attribute "buffer" (or a method detach() ?) as the binary layer of the stream

BTW, I didn't have time to finish the versions of cgi.py and tests, my next slot is this week-end
History
Date User Action Args
2011-01-07 08:14:27quentelsetrecipients: + quentel, gvanrossum, barry, amaury.forgeotdarc, ggenellina, pitrou, vstinner, eric.araujo, v+python, r.david.murray, oopos, tercero12, tcourbon, tobias, flox, pebbe, erob
2011-01-07 08:14:27quentelsetmessageid: <1294388067.8.0.33737975649.issue4953@psf.upfronthosting.co.za>
2011-01-07 08:14:25quentellinkissue4953 messages
2011-01-07 08:14:24quentelcreate