Re: Thoughts on the general API, and the Header API.

Glenn Linderman <[email protected]> Fri, 19 Feb 2010 19:34:26 -0800
Newsgroups gmane.comp.python.mime.devel
Message-ID <[email protected]>
On approximately 2/19/2010 6:23 PM, came the following characters from 
the keyboard of Barry Warsaw:
> Is it crackful to think about the policy object also containing a MIME 
> type
> registry for conversion to the specialized object types?
>    

While the MIME type registry (and other registries) were (I think) 
conceptualized as global objects, having them be "just objects" means 
you could have as many as you want, for different purposes, and means 
that you could pass them in to the encoding and decoding methods, and 
might even solve issues with different threads wanting different 
registries concurrently... they could have them.

I like the idea, although clearly it needs to be fleshed out a bit.

-- 
Glenn -- http://nevcal.com/
===========================
A protocol is complete when there is nothing left to remove.
-- Stuart Cheshire, Apple Computer, regarding Zero Configuration Networking