R. David Murray <rdmur...@bitdance.com> added the comment: The problem here is that when you are constructing a message the boundary is calculated "as needed", and returning the list of items is not one of the times when the boundary is needed. I agree that it is not good design that as_string can mutate the object it is called on; however the alternative (throwing away the calculated boundary after message Generation) means that stringifying the same message twice would produce two strings that are not equal...which also seems like bad design. But perhaps that would be less bad design.
The underlying problem here is that the things being returned by items are strings, when they should be Header objects. That problem isn't going to be resolved until the email package rewrite happens. ---------- nosy: +barry, r.david.murray priority: -> normal stage: -> test needed versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.4, Python 2.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7119> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com