summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2020-03-02 09:54:49 (GMT)
committerGitHub <noreply@github.com>2020-03-02 09:54:48 (GMT)
commit211055176157545ce98e6c02b09d624719e6dd30 (patch)
treea5727a736333dd62017bfcaa5ed57b6c1f2336eb /Doc/library
parent9f1cb1bb49476246de5d9ed5fe680301cf7f7571 (diff)
downloadcpython-211055176157545ce98e6c02b09d624719e6dd30.zip
cpython-211055176157545ce98e6c02b09d624719e6dd30.tar.gz
cpython-211055176157545ce98e6c02b09d624719e6dd30.tar.bz2
bpo-39775: inspect: Change Signature.parameters back to OrderedDict. (GH-18684)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/inspect.rst11
1 files changed, 4 insertions, 7 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index 9b9bc99..d00a30f 100644
--- a/Doc/library/inspect.rst
+++ b/Doc/library/inspect.rst
@@ -624,18 +624,15 @@ function.
.. attribute:: Signature.parameters
- An dictionary of :class:`Parameter` objects. Parameters appear in strict
- definition order, including keyword-only parameters.
+ An ordered mapping of parameters' names to the corresponding
+ :class:`Parameter` objects. Parameters appear in strict definition
+ order, including keyword-only parameters.
.. versionchanged:: 3.7
Python only explicitly guaranteed that it preserved the declaration
order of keyword-only parameters as of version 3.7, although in practice
this order had always been preserved in Python 3.
- .. versionchanged:: 3.9
- :attr:`parameters` is now of type :class:`dict`. Formerly, it was of
- type :class:`collections.OrderedDict`.
-
.. attribute:: Signature.return_annotation
The "return" annotation for the callable. If the callable has no "return"
@@ -824,7 +821,7 @@ function.
.. attribute:: BoundArguments.arguments
- An ordered, mutable mapping of parameters' names to arguments' values.
+ A mutable mapping of parameters' names to arguments' values.
Contains only explicitly bound arguments. Changes in :attr:`arguments`
will reflect in :attr:`args` and :attr:`kwargs`.