sprintf extensions
Martin Sjögren
martin at strakt.com
Mon Aug 13 04:16:57 EDT 2001
Hi fellas
There is one thing I really like about (the GNU version at least) sprintf,
and that is the n$ extensions:
sprintf(buf, "%2$s %1$s", "foo", "bar");
gives buf the value "bar foo".
Would it be possible to do this in Python?
Martin
--
Martin Sjögren
martin at strakt.com ICQ : 41245059
Phone: +46 (0)31 405242 Cell: +46 (0)739 169191
GPG key: http://www.strakt.com/~martin/gpg.html
More information about the Python-list
mailing list