[issue17349] wsgiref.simple_server.demo_app is not PEP-3333 compatible

Berker Peksag report at bugs.python.org
Fri Feb 13 20:59:08 CET 2015


Berker Peksag added the comment:

I'm not sure this needs to be fixed in 2.7. I would only use demo_app to test WSGI servers. Otherwise, you need to create your own application. However, the code is correct in Python 3: https://hg.python.org/cpython/file/default/Lib/wsgiref/simple_server.py#l146

(Note: PEP 3333 is for Python 3. In Python 2, the correct quote is "When called by the server, the application object must return an iterable yielding zero or more strings." See PEP 333.)

----------
nosy: +berker.peksag

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17349>
_______________________________________


More information about the Python-bugs-list mailing list