[Python-ideas] Implement __add__ for set and frozenset

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Jun 4 03:57:35 CEST 2008


Brandon Mintern wrote:
> Perhaps a better proposal would be "change max to use __iadd__ if
> available, falling back to __add__ if not"

That could change the behaviour of existing code that
passes a mutable initial value.

-- 
Greg



More information about the Python-ideas mailing list