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 jnelson
Recipients jnelson
Date 2009-10-13.18:58:04
SpamBayes Score 0.00646766
Marked as misclassified No
Message-id <>
import os
  from email.mime.multipart import MIMEMultipart
except ImportError:
  from email.MIMEMultipart import MIMEMultipart

m = MIMEMultipart('form-data')

print m.items()
print m.items()

print out:

[('Content-Type', 'multipart/form-data'), ('MIME-Version', '1.0')]
[('Content-Type', 'multipart/form-data;
boundary="===============0836597002796039051=="'), ('MIME-Version', '1.0')]

The latter is correct, the former is not - it is missing the boundary!
items() should behave the same regardless of whether or not as_string()
has been called.

Confirmed in 2.4 and 2.6
Date User Action Args
2009-10-13 18:58:07jnelsonsetrecipients: + jnelson
2009-10-13 18:58:06jnelsonsetmessageid: <>
2009-10-13 18:58:05jnelsonlinkissue7119 messages
2009-10-13 18:58:04jnelsoncreate