+= as declaration wish

Gregory (Grisha) Trubetskoy grisha at verio.net
Thu Feb 15 16:55:03 EST 2001


Am I missing something obvious when I think that it'd be nice if you could
do:

x += 3

and if x didn't exist, += would simply act like = rather than raise an
exception.

Grisha




More information about the Python-list mailing list