You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix OrderedDict.__init__ docstring to reflect PEP 468 #74847
In Python 3.6 and current repo (pre-3.7), the docstring for collections.OrderedDict.__init__() stats that keyword argument order is arbitrary. That is untrue if I properly understand PEP-468, which as of Python 3.6 makes the order of kwargs stable / identical to the order seen in the source code.
Currently there are two implementations of OrderedDict, and Python implementation is not used. Is C implementation need an update? What about the module documentation, is it need an update?
I don't think that we should include such details about past Python versions in docstrings. I can't remember precedences.
New changeset faa57cb by Raymond Hettinger (Jonathan Eunice) in branch 'master': bpo-30662: fixed OrderedDict.__init__ docstring re PEP-468 (bpo-2179) faa57cb
Activity
jonathaneunice commentedon Jun 14, 2017
In Python 3.6 and current repo (pre-3.7), the docstring for collections.OrderedDict.__init__() stats that keyword argument order is arbitrary. That is untrue if I properly understand PEP-468, which as of Python 3.6 makes the order of kwargs stable / identical to the order seen in the source code.
Associated PR imminent.
serhiy-storchaka commentedon Jun 14, 2017
Currently there are two implementations of OrderedDict, and Python implementation is not used. Is C implementation need an update? What about the module documentation, is it need an update?
I don't think that we should include such details about past Python versions in docstrings. I can't remember precedences.
brettcannon commentedon Jun 14, 2017
Past Python details should not be included in docstrings; it should simply represent the current code.
jonathaneunice commentedon Jun 15, 2017
PR updated to incorporate Serhiy Storchaka and Brett Cannon feedback.
rhettinger commentedon Sep 5, 2017
New changeset faa57cb by Raymond Hettinger (Jonathan Eunice) in branch 'master':
bpo-30662: fixed OrderedDict.__init__ docstring re PEP-468 (bpo-2179)
faa57cb
rhettinger commentedon Sep 6, 2017
Mariatta is working on the backport.
Mariatta commentedon Sep 6, 2017
New changeset 3b9d444 by Mariatta in branch '3.6':
[3.6] bpo-30662: fixed OrderedDict.__init__ docstring re PEP-468 (GH-2179) (GH-3370)
3b9d444
Mariatta commentedon Sep 6, 2017
Backport done.
Thanks all :)