+= as declaration wish

Gregory (Grisha) Trubetskoy grisha at verio.net
Thu Feb 15 22:55:03 CET 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