positional modifiers in python?

Jeff Epler jepler at unpythonic.net
Fri Jun 7 11:17:52 EDT 2002


On Fri, Jun 07, 2002 at 04:30:21PM +0200, fuf wrote:
>  hello everyone,
> 
>  does python support positional parameters in the print method? ie.
>  something like:
>     print "there %2$s something %1$s" % ("there", "is")

print "there %(verb)s something %(where)s" % {'verb': 'is', 'where': 'there'}

Jeff





More information about the Python-list mailing list