[Python-ideas] dict(default=int)
Chris Barker
chris.barker at noaa.gov
Thu Mar 9 17:57:05 EST 2017
>If we really want to make defaultdict feel more "builtin" (and I don't see
> >any reason to do so), I'd suggest adding a factory function:
> >
> >dict.defaultdict(int)
>
> Nice.
>
I agree -- what about:
dict.sorteddict() ??
make easy access to various built-in dict variations...
-CHB
--
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/20170309/03f8e499/attachment.html>
More information about the Python-ideas
mailing list