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
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
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
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