Re: rfc822 parser (the elephant has landed)

Barry Warsaw <[email protected]> Fri, 10 Jun 2011 16:49:05 -0400
Newsgroups gmane.comp.python.mime.devel
Organization Damn Crazy Followers of the Horn
Message-ID <[email protected]>
On Jun 10, 2011, at 09:58 AM, R. David Murray wrote:

>If you combine the last two ideas, we could have a carefully defined
>API for controlling how __setitem__ works using attributes on the
>header classes.
>
>Totally crazy?  Crazy-smart?

Could be!

>How about a validate function that takes a message and a policy?
>That would be parallel to generator.  In fact, it might share some code
>with generator.

Smart minds think alike.

-Barry
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJN8oNBAAoJEBJutWOnSwa/mPEQAKhHDR/orVHcqM/0jAcXym+S
9nHycc3gqgTGnkKEX3q0xw6jsfJJOttPd4tN1h3bGn8ik8ELHaoh63jmAPzES4kR
Mf75QR1OPQMwjM4/Cj8Z9dhMnJhvyaVv5hM3RCyXwU3/Ua1BJXT/YopRRYGmHZx4
ZmNH25tGw0fH2Q1SgtuwG/TiJjPV1ZAzxuFNxtIvOZaeYCB9Xs1Px0/RwcB8Ckin
evwITx3OgjOXGq9Zc97CGX0z17+u6gS6wZzgliqXk8K33quJj2ZMzlK66BnJuD7x
rJSi6wt+YQujqfe/4O1KVq0wdJI+eYS1Om47Y3sUEekA5JLBn8ufwW8N8Eumtdfn
sWNXubG5pZp8wyOIbeLLb/i5hI5Y6QJh/pkTinjAYTph3liO1Dtl6/5fgGoKddVL
3HzdUoahUrJBLihnux9yV3j7Ctb+soPs6ytmhFuAgrL3jDK2/Glc8SOR6HTfnORB
NAfSZOWDZImS6XDGi59PFPqeleObDsPxKw7YFWZuRDf7ulRmpIVS/S3zwrKe9N3s
HjAbBPS8BXV+3OjtvkNxmGOAeEnb6EJn7uK0O2CK++++49gMYX61gFCtpjfbXXhJ
X/ORqK/kH9vppm4vcQ1tVO4JmPLNDy9Xp8UYzYyAy3fJRmaaefuw8IuKVl31akl5
BgANSZBO8OjVW2aRBmnr
=qKGZ
-----END PGP SIGNATURE-----