homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author forest_atq
Recipients ajaksu2, alexz, barry, catlee, eric.araujo, forest_atq, fsteinel, gotgenes, guettli, jnoller, orsenthil, pitrou, r.david.murray, shazow, tamentis
Date 2010年06月04日.13:11:04
SpamBayes Score 0.09388014
Marked as misclassified No
Message-id <1275657066.99.0.435674758347.issue3244@psf.upfronthosting.co.za>
In-reply-to
Content
Hm, there is one issue. The example in the docstring wouldn't work.
You have to get the headers *after* the body, because the boundary isn't generated until the body has been. So this would work:
 body = msg.get_body()
 headers = dict(msg)
But this won't:
 headers = dict(msg)
 body = msg.get_body()
I'm not sure what the best way to deal with this is. Maybe instead of get_body we should have get_request_data which returns both headers and body. That would provide simpler semantics.
Thoughts?
Thanks,
Forest
History
Date User Action Args
2010年06月04日 13:11:07forest_atqsetrecipients: + forest_atq, barry, guettli, orsenthil, pitrou, catlee, gotgenes, ajaksu2, jnoller, eric.araujo, fsteinel, r.david.murray, shazow, alexz, tamentis
2010年06月04日 13:11:06forest_atqsetmessageid: <1275657066.99.0.435674758347.issue3244@psf.upfronthosting.co.za>
2010年06月04日 13:11:05forest_atqlinkissue3244 messages
2010年06月04日 13:11:04forest_atqcreate

AltStyle によって変換されたページ (->オリジナル) /