Tuples and immutability
rosuav at gmail.com
Fri Feb 28 15:43:55 CET 2014
On Sat, Mar 1, 2014 at 1:41 AM, Joshua Landau <joshua at landau.ws> wrote:
> Would it be better to add a check here, such that if this gets raised
> to the top-level it includes a warning ("Addition was inplace;
> variable probably mutated despite assignment failure")?
That'd require figuring out whether or not the variable was actually
mutated, and that's pretty hard to work out. So there's a FAQ entry,
which Zachary already posted:
Also, we just answer this question every now and then :) Presumably
more often on -tutor than here.
More information about the Python-list