On Oct 8, 2009, at 7:25 AM, Stephen J. Turnbull wrote:
The email package has access to the wire format, and knows what to do with most of it. It should DTRT where that is possible, and punt where not. By "punt" I mean return a special object containing as much of the meta data for an object as it could recover, along with the data itself as a blob. I would suggest that module utilities that require access to the parsed form of data be designed as object methods. The special objects produced when broken wire format is encountered wouldn't have those methods, and thus they'd fail the duck type test. But that makes sense: that "duck" can't quack anyway.
This is a very interesting idea that I think I like! -Barry
PGP.sig
Description: This is a digitally signed message part
_______________________________________________ Email-SIG mailing list Email-SIG@python.org Your options: http://mail.python.org/mailman/options/email-sig/archive%40mail-archive.com