This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Marcel.Hellkamp
Recipients Marcel.Hellkamp
Date 2010-06-17.18:34:15
SpamBayes Score 0.02459034
Marked as misclassified No
Message-id <1276799657.02.0.296941207361.issue9019@psf.upfronthosting.co.za>
In-reply-to
Content
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=diff&r1=68204&r2=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
    []
History
Date User Action Args
2010-06-17 18:34:17Marcel.Hellkampsetrecipients: + Marcel.Hellkamp
2010-06-17 18:34:17Marcel.Hellkampsetmessageid: <1276799657.02.0.296941207361.issue9019@psf.upfronthosting.co.za>
2010-06-17 18:34:15Marcel.Hellkamplinkissue9019 messages
2010-06-17 18:34:15Marcel.Hellkampcreate