summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-09-02 16:37:55 (GMT)
committerGitHub <noreply@github.com>2021-09-02 16:37:55 (GMT)
commit7aa58f5425189c95927d1620df8d6b0ba57d393a (patch)
tree869c1c17da06e11d372c344918c762a5bbdf1bf9 /Doc
parent2184bc7fe15fe67043f1887ac5d39a99c8d09e35 (diff)
downloadcpython-7aa58f5425189c95927d1620df8d6b0ba57d393a.zip
cpython-7aa58f5425189c95927d1620df8d6b0ba57d393a.tar.gz
cpython-7aa58f5425189c95927d1620df8d6b0ba57d393a.tar.bz2
[doc] Reword sentinel object summary in dataclasses (GH-27792)
This sentinel value (`MISSING`) is also used as default value for the `kw_only` parameter introduced in Python 3.10. It's cleaner to simply omit the usage here. Co-authored-by: Ɓukasz Langa <lukasz@langa.pl> (cherry picked from commit 767a17f35a581da664ac8cf5d67281da9485eebf) Co-authored-by: Ville Korhonen <ville@xd.fi>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/dataclasses.rst7
1 files changed, 3 insertions, 4 deletions
diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst
index 5da0553..5915bac 100644
--- a/Doc/library/dataclasses.rst
+++ b/Doc/library/dataclasses.rst
@@ -221,10 +221,9 @@ Module contents
c.mylist += [1, 2, 3]
As shown above, the :const:`MISSING` value is a sentinel object used to
- detect if the ``default`` and ``default_factory`` parameters are
- provided. This sentinel is used because ``None`` is a valid value
- for ``default``. No code should directly use the :const:`MISSING`
- value.
+ detect if some parameters are provided by the user. This sentinel is
+ used because ``None`` is a valid value for some parameters with
+ a distinct meaning. No code should directly use the :const:`MISSING` value.
The parameters to :func:`field` are: