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

Tim Peters tim.peters at gmail.com
Mon Aug 23 18:32:39 CEST 2004


[Clark C. Evans]
> +1 to automatic str() -- this is a common newbie mistake and I can't
> think of a case where you wouldn't want this to happen

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.

The same applies to string.join(iterable), for that matter.


More information about the Python-Dev mailing list