Change one list item in place
Gnarlodious
gnarlodious at gmail.com
Wed Dec 1 08:33:55 EST 2010
On Dec 1, 6:23 am, Jean-Michel Pichavant <jeanmic... at sequans.com>
wrote:
> what about
>
> def query():
> return ["Formating only {0} into a string".format(sendList()[0])] +
> sendList()[1:]
However this solution calls sendList() twice, which is too processor
intensive.
Thanks for all the ideas, I've resigned myself to unpacking a tuple
and reassembling it.
-- Gnarlie
http://Sectrum.com
More information about the Python-list
mailing list