Re: fixing the current email module
Barry Warsaw <[email protected]> Thu, 8 Oct 2009 09:23:42 -0400
| Newsgroups | gmane.comp.python.mime.devel |
|---|---|
| Message-ID | <[email protected]> |
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
(application/pgp-signature, 832 B) - not displayed