Re: API thoughts

"R. David Murray" <[email protected]> Tue, 01 Mar 2011 19:52:51 -0500
Newsgroups gmane.comp.python.mime.devel
Message-ID <[email protected]>
On Tue, 01 Mar 2011 17:59:10 -0500, "R. David Murray" <[email protected]> wrote:
> On Tue, 01 Mar 2011 13:58:50 -0800, Glenn Linderman <[email protected]> wrote:
> > To support reading byte-stream HTTP headers, therefore, it is critical 
> > that the email API accept an encoding from the application which "knows" 
> > the encoding; presently cgi.py has to pre-decode incoming headers 
> > because email does not have such a parameter.  On the other hand, maybe 
> > cgi.py shouldn't use email header parsing at all... since browsers don't 
> > use RFC 2047 encoding in practice, the parsing of headers without such 
> > is straightforward.
> 
> I think it could make sense for the default input character set to be
> a policy parameter for the parser.  Maybe not in the first version,
> though :)

Just to clarify:  in the first version I check in.  I'd expect to decide
about that part of the API not too far in to the development process,
and certainly well before 3.3.

--David