[Web-SIG] Re: Pending modifications to PEP 333

Steve Holden steve at holdenweb.com
Mon Aug 30 16:04:52 CEST 2004

Denis S. Otkidach wrote:

> On Sun, 29 Aug 2004 22:38:57 -0500
> Ian Bicking <ianb at colorstudy.com> wrote:
>>>* Make the 'headers' object an 'email.Message' (well, there's been some 
>>>feedback, but I think I addressed the concerns, and there was no 
>>>feedback since)
>>I'm -0 on email.Message.
> Below is a class we use for headers in our framework for several years.
> I guess it's more comfortable than list of tuples or email.Message.
> Anyway, we have to fix only "must have" interface, but not all useful
> methods.
>     def __getitem__(self, key):
>         '''Get header. If there are several header with the same key, their
>         values are joined.'''
>         # RFC 2616, 4.2 Message Headers
>         return ', '.join(self._headers_map[key.lower()])
Since this module has seen productions use, can we take it you've had no 
problem joining cookie values with dates containing commas? This was one 
of the arguments for maintaining separate multiple headers of the same 
type, IIRC.


XXX Please note recent change of email address

More information about the Web-SIG mailing list