Tuples and immutability

Chris Angelico rosuav at gmail.com
Thu Feb 27 17:33:20 CET 2014


On Fri, Feb 28, 2014 at 3:27 AM, Eric Jacoboni <eric.jacoboni at gmail.com> wrote:
> But, imho, it's far from being a intuitive result, to say the least.

It's unintuitive, but it's a consequence of the way += is defined. If
you don't want assignment, don't use assignment :)

ChrisA



More information about the Python-list mailing list