Augmented assignment (ie. += and friends) for Python!
Ben Wolfson
rumjuggler at cryptarchy.org
Sun May 14 03:15:21 EDT 2000
On Sun, 14 May 2000 07:41:18 +0300 (IDT), Moshe Zadka
<moshez at math.huji.ac.il> wrote:
>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.
^^^^^^^^^^^^^^^^^^^^^^^^
Now *that's* counter-intuitive.
--
Barnabas T. Rumjuggler
His eyes are quickened so with grief,
He can watch a grass or leaf
Every instant grow.
-- Robert Graves, some poem whose name I can't recall
More information about the Python-list
mailing list