Re: Problem with wsgiref.headers.Headers

2010-01-17 Thread Gabriel Genellina
En Fri, 15 Jan 2010 18:41:29 -0300, Phil escribió: I am having an issue with wsgiref.headers.Headers. For example, if I do this... from wsgiref.headers import Headers list = [] wrapper = Headers(list) wrapper['content-type'] = "text/html" print(list) print(wrapper) I get an empty list printe

Re: Problem with wsgiref.headers.Headers

2010-01-17 Thread Gabriel Genellina
En Fri, 15 Jan 2010 18:41:29 -0300, Phil escribió: I am having an issue with wsgiref.headers.Headers. For example, if I do this... from wsgiref.headers import Headers list = [] wrapper = Headers(list) wrapper['content-type'] = "text/html" print(list) print(wrapper) I get an empty list printe

Re: Problem with wsgiref.headers.Headers

2010-01-17 Thread Gabriel Genellina
En Fri, 15 Jan 2010 18:41:29 -0300, Phil escribió: I am having an issue with wsgiref.headers.Headers. For example, if I do this... from wsgiref.headers import Headers list = [] wrapper = Headers(list) wrapper['content-type'] = "text/html" print(list) print(wrapper) I get an empty list printe

Re: Problem with wsgiref.headers.Headers

2010-01-15 Thread Phil
I left one crucial detail out. My concern was the fact that the original headers list being wrapped ('list' in my example) is not being updated. -- http://mail.python.org/mailman/listinfo/python-list