Fix tiny tiny typo in 3.8 what's new (GH-13049)
I feel silly even making such a tiny typo fix, but I couldn't help but notice it.
This commit is contained in:
parent
5f2b3b0367
commit
0522291440
|
@ -228,7 +228,7 @@ collections
|
|||
|
||||
The :meth:`_asdict()` method for :func:`collections.namedtuple` now returns
|
||||
a :class:`dict` instead of a :class:`collections.OrderedDict`. This works because
|
||||
regular dicts have guaranteed ordering in since Python 3.7. If the extra
|
||||
regular dicts have guaranteed ordering since Python 3.7. If the extra
|
||||
features of :class:`OrderedDict` are required, the suggested remediation is
|
||||
to cast the result to the desired type: ``OrderedDict(nt._asdict())``.
|
||||
(Contributed by Raymond Hettinger in :issue:`35864`.)
|
||||
|
|
Loading…
Reference in New Issue