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

2019-04-25 Thread Berker Peksag


Berker Peksag  added the comment:

Closing this as 'not a bug' since examples in both branches are correct. Thank 
you for the report!

--
resolution:  -> not a bug
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2015-02-13 Thread Berker Peksag

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  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 rep...@bugs.python.org
http://bugs.python.org/issue17349
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2013-07-18 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
stage:  - patch review

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17349
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2013-07-06 Thread Adam Collard

Changes by Adam Collard adam.coll...@gmail.com:


--
nosy: +adam-collard

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17349
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2013-07-06 Thread Adam Collard

Adam Collard added the comment:

Since this bug depends on a __future__ import I was advised to put the test in 
a separate file.

--
Added file: http://bugs.python.org/file30815/issue-17349-wsgiref

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17349
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2013-03-08 Thread Tshepang Lekhonkhobe

Changes by Tshepang Lekhonkhobe tshep...@gmail.com:


--
nosy: +pje, tshepang

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17349
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2013-03-04 Thread Andrey Lebedev

New submission from Andrey Lebedev:

Under certain circumstances, wsgiref.simple_server.demo_app may return unicode 
data, but that is prohibited by PEP-.

This happens if environ with unicode key is passed to demo_app. Unicode keys 
are then written to StringIO instance, automatically making its value unicode.

Type of environ keys is not strictly mandated by PEP-, however output of 
WSGI application is:

  When called by the server, the application object must return an iterable 
yielding zero or more bytestrings., see 
http://www.python.org/dev/peps/pep-/#specification-details

Test case is attached.

--
components: Library (Lib)
files: wsgirefbug.py
messages: 183437
nosy: Andrey.Lebedev
priority: normal
severity: normal
status: open
title: wsgiref.simple_server.demo_app is not PEP- compatible
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file29303/wsgirefbug.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17349
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com