Why this apparent assymetry in set operations?

Skip Montanaro skip at pobox.com
Tue Jan 15 11:07:07 EST 2008


> > Why is that?  Doesn't the |= operator essentially map to an update() call?
> 
> No, according to 3.7 Set Types, s | t maps to s.union(t).

I was asking about the |= assignment operator which according to the
docs *does* map to the update method.

Skip







More information about the Python-list mailing list