how to mutate a tuple?
Carlo v. Dango
oest at soetu.eu
Tue Oct 14 10:42:25 EDT 2003
On Tue, 14 Oct 2003 23:28:24 +1000, Andrew Bennetts
<andrew-pythonlist at puzzling.org> wrote:
many thanks to you all for all the kind replies.. I'm sorry for posting
such a simple question.. but I wasn't able to read about tuple() and
list() ... without those two its a bit difficult to do what I wanted ;)
>
> You could always just convert it to a list, and mutate that, e.g.:
>
> mutable = list(your_tuple)
> mutate(mutable)
> new_tuple = tuple(mutable)
>
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
More information about the Python-list
mailing list