CGI python 3 write RAW BINARY

Antoine Pitrou solipsis at pitrou.net
Thu Apr 29 11:07:55 EDT 2010


Le Thu, 29 Apr 2010 12:53:53 +0200, Dodo a écrit :
> 
> @Antoine : It not sys.stdout.buffer.write but sys.stdout.write()
> instead. But it still doesn't work, now I have empty content

Let me insist: please use sys.stdout.buffer.write().
You'll also have to call sys.stdout.flush() before doing so.





More information about the Python-list mailing list