[Python-Dev] Re: PEP 292 - Simpler String Substitutions

Aahz aahz at pythoncraft.com
Tue Aug 24 20:45:28 CEST 2004


On Tue, Aug 24, 2004, Barry Warsaw wrote:
> On Mon, 2004-08-23 at 12:32, Tim Peters wrote:
>> 
>> Apologies to Barry, but I'm +1 on auto-str() too.  It's a string
>> interpolation -- the user is explicitly asking for a string.  If they
>> made a mistake, it was in asking for a string to begin with, not in
>> feeding it a non-string.
> 
> Should it be auto-unicode(), given that Template is derived from
> unicode?  And if so, should we entertain the possibility of insanities
> like giving the user the ability to pass optional arguments to the
> unicode() call?  If the answers to that are yes and no, that's fine with
> me.

Here you go: yes and no
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"To me vi is Zen.  To use vi is to practice zen.  Every command is a
koan.  Profound to the user, unintelligible to the uninitiated.  You
discover truth everytime you use it."  --reddy at lion.austin.ibm.com


More information about the Python-Dev mailing list