New submission from Tarek Ziadé <ziade.ta...@gmail.com>: wsgiref.headers.Headers will let you manage a collection of HTTP response headers, but the constructor forces you to provide a list:
>>> from wsgiref.headers import Headers >>> headers = Headers([]) >>> headers.add_header('Content-Type', 'text/plain') A logical change would be to allowed creating an empty Headers instance: >>> from wsgiref.headers import Headers >>> headers = Headers() >>> headers.add_header('Content-Type', 'text/plain') ---------- components: Library (Lib) messages: 86199 nosy: pje, tarek severity: normal status: open title: make wsgiref.headers.Headers accept empty constructor type: feature request versions: Python 2.7, Python 3.1 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5800> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com