Is behavior of += intentional for int?

Günther Dietrich gd_usenet at
Sat Aug 29 18:25:54 CEST 2009

Paul McGuire <ptmcg at> wrote:

>What exactly are you trying to do?

I think, he wants to kind of dereference the list element. So that he 
can write

>>> a += 1

instead of

>>> long_name_of_a_list_which_contains_data[mnemonic_pointer_name] += 1



More information about the Python-list mailing list