From: tim_one at email.msn.com (Tim Peters)
Date: Sat, 17 Apr 1999 04:59:29 GMT
Subject: Quick fix to add "+="
In-Reply-To: <3717EE20.41343593@mediaone.net>
References: <3717EE20.41343593@mediaone.net>
Message-ID: <000701be888f$12fe2920$ee9e2299@tim>
X-UID: 958                                                  

[Fuming Wang]
> I have searched dejanews. They don't like the "+=" characters. Could you
> be more specific about how to modify the interpreter? I desperate
> here.:)

There's a Python ToDo entry open on this; it may (or may not) be introduced
in Python2; last time this went around was late last August, in thread "Why
no += operator, please?"; modifying the interpreter was an absurd
suggestion, although that's what it would take; in the meantime, use an
editor with word completion (e.g. Guido's IDLE environment, included with
1.5.2, has this), and/or factor by hand, e.g. not

    a.b.c.d.e.f.g.h.i.j = a.b.c.d.e.f.g.h.i + 1

but

    x = a.b.c.d.e.f.g.h.i
    x.j = x.j + 1

can't-wait-for-a-resumption-of-the-assignment-expression-thread<wink>-ly
y'rs  - tim






