[Web-SIG] about wsgiref.headers.Headers
Manlio Perillo
manlio_perillo at libero.it
Thu Jan 17 22:58:36 CET 2008
Phillip J. Eby ha scritto:
> At 08:34 PM 1/17/2008 +0100, Manlio Perillo wrote:
>> Hi.
>>
>> What is the rationale for Headers._headers being private?
>
> The code was mostly a copy-and-paste job from email.Message, which did
> the same. At one point, it might actually have been a subclass of
> email.Message, and so it was required.
>
Having the `_headers` private is ok for the email.Message, but I think
it is wrong for wsgiref, since the Headers class is just a wrapper for
the headers list.
Manlio Perillo
More information about the Web-SIG
mailing list