List Info

Thread: Re: What is the augmented assignment operator "^="




Re: What is the augmented assignment operator "^="
user name
2007-02-19 04:13:57
On 2/19/07, Dick Moores <rdmrcblue.com> wrote:

> I've tried "^=" out a bit:
[...]
> and get that strange alternating behavior. Can someone
explain?
> And while at it, please also explain "&="
and "|=".

^ is XOR, & is AND, | is OR, all bitwise.

You can read more about them here: http://www.somacon.co
m/p125.php
under "C bitwise operators".


-- 
- Rikard.
_______________________________________________
Tutor maillist  -  Tutorpython.org
http://
mail.python.org/mailman/listinfo/tutor

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )