Re: API for Header objects [was: Dropping bytes "support" in json]

"R. David Murray" <[email protected]>
Newsgroups gmane.comp.python.mime.devel
Message-ID <[email protected]>
On Fri, 17 Apr 2009 at 13:26, Tony Nelson wrote:
> At 00:13 +0900 04/18/2009, Stephen J. Turnbull wrote:
>> R. David Murray writes:
>>
>>> put Header objects into it.  I don't think the "overhead" of
>>> having to do
>>>
>>>      message['Subject'] = Header('subject string')
>>
>> Hm.  Should a Header know which header it is?  Ie, should that be
>>
>>    message['Subject'] = Header('subject', 'subject string')
> ...
>
> How about:
>
>    message['Subject'] = 'subject string'
>    message['To'] = ('joe', '[email protected]')

Like I said, personally I find that too magical for my tastes.

--David
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.