On Thu, Jul 26, 2018 at 12:04 PM Zhao Lee <redstone-c...@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  <songofaca...@gmail.com>
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to