[Python-Dev] Re: Alternative Implementation for PEP292:SimpleString Substitutions

Fredrik Lundh fredrik at pythonware.com
Sun Sep 5 10:26:28 CEST 2004


Barry wrote:

> I'll point out that Template was very deliberately subclassed from
> unicode, so Template instances /are/ unicode objects.  From the
> standpoint of type conversion, using /F's notation, T(8) == U, thus
> because U % 8 == U, T(8) % 8 == U.

from a user perspective, there's no reason to make templates a sub-
class of unicode, so the rest of your argument is irrelevant.

instead of looking at use patterns, you're stuck defending the existing
code.  that's not a good way to design usable code.

</F> 





More information about the Python-Dev mailing list