[Python-3000] String formating operations in python 3k

Barry Warsaw barry at python.org
Wed Apr 5 04:19:34 CEST 2006


On Apr 4, 2006, at 8:38 PM, Greg Ewing wrote:

> Ian Bicking wrote:
>
>> Using {} instead of $/${} doesn't seem like a big win.
>
> Perhaps this is where we differ. To me it
> *does* make quite a substantial difference
> to readability -- easily enough to override
> whatever small advantage there might be in
> following what everyone else does.

Yes, I think this is where we differ.  $thing in it's most common  
form is more readable to me than {thing}, and while the former is  
equivalent to ${thing} with string.Template's defaults, I find it's  
very rarely used.  So I wouldn't be in favor of changing it.  Of  
course, beauty is in the eye of the beholder and all that...

-Barry



More information about the Python-3000 mailing list