mirror of https://github.com/python/cpython
bpo-30662: fixed OrderedDict.__init__ docstring re PEP 468 (#2179)
* fixed OrderedDict.__init__ docstring re PEP 468 * tightened comment and mirrored to C impl * added space after period per marco-buttu * preserved substituted for stable * drop references to Python 3.6 and PEP 468
This commit is contained in:
parent
af46eb8d5f
commit
faa57cbe70
|
@ -85,9 +85,7 @@ class OrderedDict(dict):
|
||||||
|
|
||||||
def __init__(*args, **kwds):
|
def __init__(*args, **kwds):
|
||||||
'''Initialize an ordered dictionary. The signature is the same as
|
'''Initialize an ordered dictionary. The signature is the same as
|
||||||
regular dictionaries, but keyword arguments are not recommended because
|
regular dictionaries. Keyword argument order is preserved.
|
||||||
their insertion order is arbitrary.
|
|
||||||
|
|
||||||
'''
|
'''
|
||||||
if not args:
|
if not args:
|
||||||
raise TypeError("descriptor '__init__' of 'OrderedDict' object "
|
raise TypeError("descriptor '__init__' of 'OrderedDict' object "
|
||||||
|
|
|
@ -882,8 +882,7 @@ odict_eq(PyObject *a, PyObject *b)
|
||||||
|
|
||||||
PyDoc_STRVAR(odict_init__doc__,
|
PyDoc_STRVAR(odict_init__doc__,
|
||||||
"Initialize an ordered dictionary. The signature is the same as\n\
|
"Initialize an ordered dictionary. The signature is the same as\n\
|
||||||
regular dictionaries, but keyword arguments are not recommended because\n\
|
regular dictionaries. Keyword argument order is preserved.\n\
|
||||||
their insertion order is arbitrary.\n\
|
|
||||||
\n\
|
\n\
|
||||||
");
|
");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue