Message107046
| 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:07 | forest_atq | set | recipients:
+ forest_atq, barry, guettli, orsenthil, pitrou, catlee, gotgenes, ajaksu2, jnoller, eric.araujo, fsteinel, r.david.murray, shazow, alexz, tamentis |
| 2010年06月04日 13:11:06 | forest_atq | set | messageid: <1275657066.99.0.435674758347.issue3244@psf.upfronthosting.co.za> |
| 2010年06月04日 13:11:05 | forest_atq | link | issue3244 messages |
| 2010年06月04日 13:11:04 | forest_atq | create |
|