A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2018-July/154766.html below:

[Python-Dev] Fw:[issue34221] Any plans to combine collections.OrderedDict with dict

[Python-Dev] Fw:[issue34221] Any plans to combine collections.OrderedDict with dict [Python-Dev] Fw:[issue34221] Any plans to combine collections.OrderedDict with dictINADA Naoki songofacandy at gmail.com
Wed Jul 25 23:23:12 EDT 2018
On Thu, Jul 26, 2018 at 12:04 PM Zhao Lee <redstone-cold at 163.com> wrote:
>
>
> Since Python 3.7,dicts remember the order that items were inserted, so any plans to combine collections.OrderedDict with dict?
> https://docs.python.org/3/library/collections.html?#collections.OrderedDict
> https://docs.python.org/3/library/stdtypes.html#dict

No.  There are some major difference.

* d1 == d2 ignores order / od1 == od2 compares order
* OrderedDict has move_to_end() method.
* OrderedDict.pop() takes `last=True` keyword.

Regards,
-- 
INADA Naoki  <songofacandy at gmail.com>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4