[Python-ideas] Allow a group by operation for dict comprehension

Chris Barker chris.barker at noaa.gov
Thu Jun 28 20:03:57 EDT 2018

On Thu, Jun 28, 2018 at 4:59 PM, Steven D'Aprano <steve at pearwood.info>

> Can I make a plea for people to not post code with source highlighting
> as HTML please? It is rendered like this for some of us:
> On Thu, Jun 28, 2018 at 10:01:00AM -0700, Chris Barker via Python-ideas
> wrote:
>     In [*46*]: {a:[t[0] *for* t *in* b] *for* a,b *in*
>     groupby(sorted(student_school_list,
>     key=*lambda* t: t[1]), key=*lambda* t: t[

Oh god -- yeach!! -- sorry about that -- that was copy an pasted from
iPython -- I was assuming it would strip out the formatting and give
reasonable plain text -- but apparently not.

I'll stop that.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180628/4af45ea6/attachment-0001.html>

More information about the Python-ideas mailing list