[Python-ideas] Adding "+" and "+=" operators to dict
Chris Barker
chris.barker at noaa.gov
Fri Feb 13 05:22:01 CET 2015
On Thu, Feb 12, 2015 at 6:45 PM, Steven D'Aprano <steve at pearwood.info>
wrote:
> - dict(a,b,c,d) takes 6 characters more to write than a+b+c+d.
>
and dict(a,b)
is three times as many characters as:
a + b
- just sayin'
I'm curious what the aversion is to having an operator -- sure, it's not a
big deal, but then again there's very little cost, as well. I can't really
see a "trap" here. Sure there are multiple ways it could be defined, but
having it act like update() seems pretty explainable.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150212/a0f83b42/attachment-0001.html>
More information about the Python-ideas
mailing list