Fredrik Lundh wrote: > Steve Holden wrote: [...] >> I suppose it's only a matter of time before someone wants to define >> dict.__add__ ... > > that's been proposed quite a few times, and always gets stuck when it's > time to define the exact semantics for dealing with collisions. there > are simply too many ways to do it, and all of them are can be trivially > and efficiently implemented in terms of copy/update or for-in (or, in > quite a few cases, by using sets instead of dicts). > But, as we both know, the fact that something can be trivially implemented in Python doesn't stop people asking for it to be added as native.
oh-no-indeed-ly y'rs - steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://holdenweb.blogspot.com Recent Ramblings http://del.icio.us/steve.holden -- http://mail.python.org/mailman/listinfo/python-list