OrderedDict with kwds

INADA Naoki songofacandy at gmail.com
Sat Apr 22 04:20:50 EDT 2017

On Sat, Apr 22, 2017 at 3:08 AM, Albert-Jan Roskam
<sjeik_appie at hotmail.com> wrote:
> For regular dicts I like to use the dict() function because the code is easier to write and read. But OrderedDict() is not equivalent to dict():
> In the docstring of collections.OrderedDict it says "keyword arguments are not recommended because their insertion order is arbitrary" (https://github.com/python/cpython/blob/3.6/Lib/collections/__init__.py)

>From Python 3.6, keyword arguments are ordered.  So the docstring is outdated.

More information about the Python-list mailing list