Sometimes I suggest to add things to the language (like adding some set
methods to dicts), but I've seen that I tend to forget the meaning of
six set/frozenset operators:

s & t  s &= t
s | t  s |= t
s ^ t  s ^= t

My suggestion is to remove them, and keep them only as explicit
non-operator versions (.symmetric_difference(), .update(),
.intersection_update(), etc). But maybe now it's too much late to
remove them... Maybe someone gentle can explain me the advantage of
having/keeping them.

Thank you,
Bearophile

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to