[Web-SIG] [Python-Dev] Adding wsgiref to stdlib

Titus Brown titus at caltech.edu
Sat Apr 29 01:34:35 CEST 2006


On Fri, Apr 28, 2006 at 02:36:11PM -0400, Phillip J. Eby wrote:
-> At 11:03 AM 4/28/2006 -0700, Guido van Rossum wrote:
-> >(I'm asking Phillip to post the URL for the current
-> >source; searching for it produces multiple repositories.)
-> 
-> Source browsing: http://svn.eby-sarna.com/wsgiref/
-> Anonymous SVN:   svn://svn.eby-sarna.com/svnroot/wsgiref

Hi, Phillip,

I'm getting this error when I run the tests, with both Python 2.3 and
2.4:

======================================================================
FAIL: testHeaderFormats (wsgiref.tests.test_handlers.HandlerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/disk/u/t/dev/misc/wsgiref/src/wsgiref/tests/test_handlers.py", line 205, in testHeaderFormats
    (stdpat%(version,sw), h.stdout.getvalue())
AssertionError: ('HTTP/1.0 200 OK\\r\\nDate: \\w{3} \\w{3} [ 0123]\\d \\d\\d:\\d\\d:\\d\\d \\d{4}\\r\\nServer: FooBar/1.0\r\nContent-Length: 0\\r\\n\\r\\n', 'HTTP/1.0 200 OK\r\nDate: Fri, 28 Apr 2006 23:28:11 GMT\r\nServer: FooBar/1.0\r\nContent-Length: 0\r\n\r\n')

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

On a separate note, what are you actually proposing to include?  It'd be
good to remove the TODO list, for example, unless those are things To Be
Done before adding it into Python 2.5.

Will it be added as 'wsgi' or 'wsgiref?

I'd also personally suggest putting anything intended for common use
directly under the top level, i.e.

	wsgiref.WSGIServer

vs

	wsgiref.simple_server.WSGIServer

And, finally, is there any documentation?

I'm happy to help with renaming, doc writing, etc.  Just point me in the
right direction!

cheers,
--titus


More information about the Web-SIG mailing list