[issue18139] email module should have a way to prepend and insert headers

Surya K report at bugs.python.org
Mon Mar 3 16:03:50 CET 2014


Surya K added the comment:

I've done the following changes:

1. create insert_header(): Which places header at the beginning.
For that I created set() method which actually takes an argument `pos` default to 0.

2. __setitem__() uses set() (new method) method while fixing `pos` to end.
3. _parse_values(), new method created to not duplicate the code in insert_header() and add_header() since both of them merely do same job.

Please let me know your opinions on it.

----------
keywords: +patch
nosy: +Surya.K
Added file: http://bugs.python.org/file34278/suryak.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18139>
_______________________________________


More information about the Python-bugs-list mailing list