Assignment Operators?

Ian Kelly ian.g.kelly at gmail.com
Thu Oct 2 12:00:32 EDT 2014


On Thu, Oct 2, 2014 at 7:24 AM, Didymus <lynto28 at gmail.com> wrote:
>    The '|=' operator, I read should be like a = a | b, but this appears to add the two numbers as long as it's more than the previous:

Note that:

    a = a or b

and:

    a = a | b

are different operations. It sounds like you're probably looking for
the former, not the latter.



More information about the Python-list mailing list