On Dec 12, 7:31 am, Steve Holden <st...@holdenweb.com> wrote: > sturlamolden wrote: > > On Dec 12, 1:56 pm, sturlamolden <sturlamol...@yahoo.no> wrote: > > >> That is because integers are immutable. When x += 1 is done on an int, > >> there will be a rebinding. But try the same on say, a numpy array, and > >> the result will be different: snip
> This was all thrashed out exhaustively in the still-feared call > semantics thread. Yes, augmented operations work differently on mutable > and immutable objects. Nothing to see here, move right along ... Lol! <continues to read thread> -- http://mail.python.org/mailman/listinfo/python-list