bpo-30662: fixed OrderedDict.init docstring re PEP 468 (#2179) · python/cpython@faa57cb (original) (raw)

2 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -85,9 +85,7 @@ class OrderedDict(dict):
85 85
86 86 def __init__(*args, **kwds):
87 87 '''Initialize an ordered dictionary. The signature is the same as
88 - regular dictionaries, but keyword arguments are not recommended because
89 - their insertion order is arbitrary.
90 -
88 + regular dictionaries. Keyword argument order is preserved.
91 89 '''
92 90 if not args:
93 91 raise TypeError("descriptor '__init__' of 'OrderedDict' object "
Original file line number Diff line number Diff line change
@@ -882,8 +882,7 @@ odict_eq(PyObject *a, PyObject *b)
882 882
883 883 PyDoc_STRVAR(odict_init__doc__,
884 884 "Initialize an ordered dictionary. The signature is the same as\n\
885 - regular dictionaries, but keyword arguments are not recommended because\n\
886 - their insertion order is arbitrary.\n\
885 + regular dictionaries. Keyword argument order is preserved.\n\
887 886 \n\
888 887 ");
889 888