Greg Ewing wrote:
Nick Coghlan wrote:

Having to mess around with __import__ just to support a "choose compression method" configuration option would be fairly annoying.

Perhaps, but even then, I'm not sure it makes sense to
lump them all into the same namespace.

If you're choosing a compression method, it makes sense
to choose 'zip', 'gzip', or 'bzip2', but less sense to
choose 'hex' or 'base64', and even less 'utf8' or 'latin1'.

Similarly there will be different appropriate sets for
video encoding, audio encoding, etc.

The problem with that is that defining the categories becomes a fairly tedious chore. Having the codec namespace is convenient, and I don't see anything but downsides in trying to replace it with something more complicated.

Cheers,
Nick.

--
Nick Coghlan   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---------------------------------------------------------------
            http://www.boredomandlaziness.org
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to