[Python-checkins] python/nondist/peps pep-0333.txt,1.2,1.3

pje at users.sourceforge.net pje at users.sourceforge.net
Mon Aug 30 05:05:02 CEST 2004


Update of /cvsroot/python/python/nondist/peps
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30295

Modified Files:
	pep-0333.txt 
Log Message:
Misc. clarifications added per Alan Kennedy's report on his 
experiences implementing WSGI in Jython/Java Servlets.


Index: pep-0333.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0333.txt,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- pep-0333.txt	27 Aug 2004 21:14:42 -0000	1.2
+++ pep-0333.txt	30 Aug 2004 03:04:59 -0000	1.3
@@ -363,8 +363,18 @@
                        preference.)
 
 ``wsgi.errors``        An output stream to which error output can be
-                       written.  For most servers, this will be the
-                       server's error log.
+                       written, for the purpose of recording program
+                       or other errors in a standardized and possibly
+                       centralized location.  For many servers, this
+                       will be the server's main error log.
+
+                       Alternatively, this may be ``sys.stderr``, or 
+                       a log file of  some sort.  The server's
+                       documentation should include an explanation of
+                       how to configure this or where to find the
+                       recorded output.  A server or gateway may
+                       supply different error streams to different
+                       applications, if this is desired.
 
 ``wsgi.multithread``   This value should be true if the application
                        object may be simultaneously invoked by another
@@ -514,7 +524,12 @@
 
 The return value of the ``start_response()`` callable is a
 one-argument `write()`` callable, that accepts strings to write as
-part of the HTTP response body.
+part of the HTTP response body.  The server or gateway must
+not modify supplied strings in any way; they must be treated
+as binary byte sequences with no character interpretation, line
+ending changes, or other modification.  The application is responsible
+for ensuring that the string(s) to be written are in a format suitable
+for the client.
 
 Note that the purpose of the ``write()`` callable is primarily to
 support existing application frameworks that support a streaming



More information about the Python-checkins mailing list