Augmented assignment (ie. += and friends) for Python!
Moshe Zadka
moshez at math.huji.ac.il
Sun May 14 00:41:18 EDT 2000
On Sat, 13 May 2000, Courageous wrote:
>
> > No, he didn't, because he knows they're spelt "&=" and "|=" and he
> > supports them. Maybe you should check these things before posting?
>
> Possibly. Puzzled, however, what someone could possibly mean by &&=?
Evaluate RHS. If true, do nothing. If false, evaluate LHS and assign it to
RHS.
--
Moshe Zadka <moshez at math.huji.ac.il>
http://www.oreilly.com/news/prescod_0300.html
http://www.linux.org.il -- we put the penguin in .com
More information about the Python-list
mailing list