why can't % operator use a list?

John Roth johnroth at ameritech.net
Mon May 5 14:06:20 EDT 2003


"S. Francis" <stgcri01 at univ-mlv.fr> wrote in message
news:b9669t$m5r$1 at alto.univ-mlv.fr...
> > If would be nice  if the % operator could work on lists as well as
tuples:
>
> So ... would you find it nice with strings too?

Actually, it does, and I've been bit by that a couple of times. I
don't offhand remember the set of conditions, tho.

John Roth

> Like:
> '%s%s%s' %'foo' => 'foo'
>






More information about the Python-list mailing list