[Python-ideas] Fwd: grouping / dict of lists
Chris Barker
chris.barker at noaa.gov
Fri Jul 13 01:11:46 EDT 2018
On Mon, Jul 9, 2018 at 5:55 PM, Franklin? Lee <leewangzhong+python at gmail.com
> wrote:
> >> - The storage container.
> >
> >
> > so this means you'r passing in a full set of storage containers? I'm a
> vit
> > confused by that -- if they might be pre-populated, then they would need
> to
> > be instance,s an you'd need to have one for every key -- how would you
> know
> > in advance aht you needed???
>
> No, I mean the mapping (outer) container. For example, I can pass in
> an empty OrderedDict, or a dict that already contained some groups
> from a previous call to the grouping function.
>
Sure -- that's what my prototype does if you pass a Mapping in (or use
.update() )
why not?
-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/20180713/d13fdb7a/attachment.html>
More information about the Python-ideas
mailing list