New submission from Marcel Hellkamp defn...@gmail.com:
The current (3.x) implementation of wsgiref.headers.Headers() does not match
the documentation.
Documented behaviour:
Any changes made to the new Headers object will directly update the headers
list it was created with. (/Doc/library/wsgiref.rst)
Actual behaviour:
The initial headers list is not updated.
The error was introduced with revision 68205. See
http://svn.python.org/view/python/branches/py3k/Lib/wsgiref/headers.py?view=diffr1=68204r2=68205
Revision 68204::
from wsgiref.headers import Headers
l = []
h = Headers(l)
h.add_header('Test','Test')
l
[('Test', 'Test')]
Revision 68205::
from wsgiref.headers import Headers
l = []
h = Headers(l)
h.add_header('Test','Test')
l
[]
--
components: Library (Lib)
messages: 108042
nosy: Marcel.Hellkamp
priority: normal
severity: normal
status: open
title: wsgiref.headers.Header() does not update headers list it was created
with.
type: behavior
versions: Python 3.1, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9019
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com