+= as declaration wish

Sean Reifschneider jafo at tummy.com
Thu Feb 15 17:54:49 EST 2001


On Thu, Feb 15, 2001 at 04:55:03PM -0500, Gregory (Grisha) Trubetskoy wrote:
>Am I missing something obvious when I think that it'd be nice if you could
>do:
>
>x += 3

What does x default to if it doesn't exist?  None?  0? ""?

If it worked, I'd still explicitly set the LHS first anyway, I'm fairly sure.

Sean
-- 
 Linux:  When you need to run like a greased weasel.
                 -- Sean Reifschneider, 1998
Sean Reifschneider, Inimitably Superfluous <jafo at tummy.com>
tummy.com - Linux Consulting since 1995. Qmail, KRUD, Firewalls, Python




More information about the Python-list mailing list