string formatting with mapping & '*'... is this a bug?

Pierre Fortin pfortin at pfortin.com
Fri Sep 10 18:01:40 CEST 2004


On Fri, 10 Sep 2004 10:42:08 -0500 Jeff wrote:

> In the case of Python, this would become
>         print "%(width)*(num)d" % {'width': width, 'num': num}

If this did change, I'd prefer:
       print "%(num)*(width)d" % {'width': width, 'num': num}
                ^^^   ^^^^^
in keeping with "in this order" (PyEssenRef 2nd ed. - P.47)

Pierre



More information about the Python-list mailing list