[IPython-dev] display of dicts?

Steve Holden steve at holdenweb.com
Tue Dec 19 12:58:15 EST 2017


I've just "run it up the flagpole" on python-dev, so we'll see if anyone
salutes.

Steve Holden

On Tue, Dec 19, 2017 at 5:55 PM, Chris Barker <chris.barker at noaa.gov> wrote:

> On Tue, Dec 19, 2017 at 9:50 AM, Steve Holden <steve at holdenweb.com> wrote:
>
>>
>> ​What about adding a "sorted" method to dicts that produces a dict with
>> the same keys but the keys inserted ​in sorted order?
>>
>
> That would be a job for python-dev, yes?
>
> And maybe .sort() that sorts in place instead -- similar to lists.
>
> Too bad that the plain sorted() function only gives you the keys.. though
> there is
>
> dict(sorted(d.items()))
>
>
> to get a sorted dict.
>
>
> -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
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at python.org
> https://mail.python.org/mailman/listinfo/ipython-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20171219/e89f38e6/attachment-0001.html>


More information about the IPython-dev mailing list