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

Greg Ewing greg.ewing at canterbury.ac.nz
Sun May 18 01:50:24 CEST 2008


Stephen J. Turnbull wrote:

> Do you really think that .transform clients will really choose
> 'base64' when they want 'lzma'?

It depends on who the "client" is. An application popping
up a list of compression methods is just going to confuse
users if it lists "base64" as a possibility.

So it already needs some application-specific notion of
what constitutes a probable compression method built
into it, and if that list is to be extensible, it needs
an application-specific registry to manage it. Once
you've got that, the general codec registry doesn't
help you much.

-- 
Greg


More information about the Python-3000 mailing list