[Python-3000] PEP 3138- String representation in Python 3000

Nick Coghlan ncoghlan at gmail.com
Sat May 17 11:18:55 CEST 2008


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   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org


More information about the Python-3000 mailing list