Assignment Operators?

Ian Kelly ian.g.kelly at
Thu Oct 2 18:00:32 CEST 2014

On Thu, Oct 2, 2014 at 7:24 AM, Didymus <lynto28 at> 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


    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