In <[email protected]> Thomas 'PointedEars' Lahn <[email protected]> writes:
> >> The obvious way does not work - > >> > >> a += (5, 6) > ^^^^^^ > > Right, because a tuple is immutable. > How did you get that idea? It has been mutated in the very statement that > you are quoting No. An entirely new tuple is created, and 'a' is rebound to it. The existing tuple is not mutated. -- John Gordon A is for Amy, who fell down the stairs [email protected] B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies" -- https://mail.python.org/mailman/listinfo/python-list
