[Python-ideas] Implement __add__ for set and frozenset

Mathias Panzenböck grosser.meister.morti at gmx.net
Tue Jun 3 19:38:13 CEST 2008


Arnaud Delobelle schrieb:
 >
 > As a consequence of Python method implementation, one could write instead:
 >
 >     A = set.union(S, T, U, V)
 >     B = set.intersection(S, T, U, V)
 >
 > which reads nicely
 >

I think this, indeed, reads nicely.

	-panzi



More information about the Python-ideas mailing list