Re: Feature request: New string conversion type to ignore list item

2007-06-05 Thread thomas . pohl
On 5 Jun., 13:12, Peter Otten <[EMAIL PROTECTED]> wrote: > or like this: > > >>> "%s %.s %s" % ("first", "second", "third") > > 'first third' Hey, that's great, thanks Peter! Tom -- http://mail.python.org/mailman/listinfo/python-list

Feature request: New string conversion type to ignore list item

2007-06-05 Thread thomas . pohl
Hi, let's assume you want to nicely print the content of a list except for one (or some) individual item. You could do it like this: t = ["foo", "skip me", 1, 2, 3] print("text: %s\nvalues: %i %i %i" % (t[0], t[2], t[3], t[4])) If there was a conversion type which simply ignores the corresponding