semantics of the |= operator

Peter Pearson ppearson at nowhere.invalid
Fri Aug 22 19:40:32 CEST 2008

On Fri, 22 Aug 2008 00:35:31 -0700 (PDT), akva <kiruta at> wrote:
> well, frankly I expected a |= b to mean exactly the same as a = a | b
> regardless of the object type.

So did I.  I'm glad your post called this to my attention;  I
recently told my kid exactly that wrong thing.

To email me, substitute nowhere->spamcop, invalid->net.

More information about the Python-list mailing list