Message49951
Logged In: YES
user_id=6380
I like this.
The reason to like this in favor of s%x was expressed by
Walter Dörwald on the python-3000 list:
"""
it avoids one problem you might run into with %:
If you have only one argument, writing ``s % (x,)``
as ``s % x`` will break when the
argument x happens to be a tuple.
You won't have this problem with
s.format(x).
"""
However, this might be our chance to introduce a new
formatting syntax, since there are many problems with the %s
style (especially %(foo)s). See PEP 292.
We need a Python 3000 group in the trackers. |
|
Date |
User |
Action |
Args |
2007-08-23 15:48:05 | admin | link | issue1463370 messages |
2007-08-23 15:48:05 | admin | create | |
|