"D'Arcy J.M. Cain" <[EMAIL PROTECTED]> writes: > The above can be done with; > > "%s=%s&%s=%s" % tuple([urllib.quote(x) for x in params])
Or, better::
"%s=%s&%s=%s" % tuple(urllib.quote(x) for x in params)
passing a generator, instead of a list created from a generator, to
the tuple constructor.
--
\ "I put instant coffee in a microwave oven and almost went back |
`\ in time." -- Steven Wright |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
