Augmented assignment (ie. += and friends) for Python!
Philip 'Yes, that's my address' Newton
nospam.newton at gmx.li
Thu May 18 02:08:08 EDT 2000
On Sun, 14 May 2000 17:25:56 +0200, Thomas Wouters <thomas at xs4all.net>
wrote:
>On Sun, May 14, 2000 at 07:15:21AM +0000, Ben Wolfson wrote:
>> 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:
>
>> >> 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.
>
>That's probably because it's wrong :) The explanation is about ||=, not &&=;
>&&= would be:
>
>Evaluate RHS. If false, do nothing. If true, evaluate LHS and assign it to
>RHS.
Assign it *to the right-hand side*??
Cheers,
Philip
--
Philip Newton <nospam.newton at gmx.li>
If you're not part of the solution, you're part of the precipitate.
More information about the Python-list
mailing list