My colleague Robert Collins sent me this and asked that I forward it to the
email-sig for discussion.

-Barry

Begin forwarded message:

Date: Sun, 28 Feb 2010 17:20:00 +1100
From: Robert Collins <robe...@robertcollins.net>
To: Barry Warsaw <ba...@python.org>
Subject: MIME objects


I wanted to use MIME in selftest machinery, but the stdlib stuff was
uhm, missing.

So I wrote one; its working  well  - perhaps you could include it in the
stdlib?

http://bazaar.launchpad.net/~testtools-dev/testtools/trunk/annotate/head
%3A/testtools/content_type.py
http://bazaar.launchpad.net/~testtools-dev/testtools/trunk/annotate/head
%3A/testtools/content.py

(branch testtools, read the README + pydoc, look at tests.

Features:
 - 2 and 3 clean
 - understands byte serialisation vs string representation
 - streaming interface: does not require or imply buffering
 - common case use is trivial (define one lambda: [value]).


Cheers,
Rob
-- 

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Email-SIG mailing list
Email-SIG@python.org
Your options: 
http://mail.python.org/mailman/options/email-sig/archive%40mail-archive.com

Reply via email to