R. David Murray added the comment:

A crazy idea that occurred to me was to create an "rfc822-style-header 
management" module, and share it between email, http, and urllib.  We'd 
probably break too many things backward-compatibility wise if we did that, but 
I still think it is an interesting thought :)

On the other hand, having thought about this particular issue some more: in the 
email package we have the constraint of needing to be able to exactly reproduce 
the input data, whereas in the http world that constraint does not apply.  So 
in the http world, given that headers are *already* being transformed by the 
code in question (title casing), it seems reasonable that blank stripping also 
be done, even just from an API standpoint.

Really I guess the only question is how likely this is to break existing code.  
I'm pretty sure it is small enough that doing this in 3.4 would be fine, but I 
don't know how to estimate if it is small enough to also change it in 
maintenance releases.  Since this particular bit is a new standard, maybe we 
just go with 3.4?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17322>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to