From f7316723e96194a8add817ae24abe0242f8728b2 Mon Sep 17 00:00:00 2001 From: "Eric V. Smith" Date: Tue, 26 Dec 2017 10:11:44 -0500 Subject: [PATCH] Change _MISSING to MISSING and make it part of the public API. --- pep-0557.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pep-0557.rst b/pep-0557.rst index d420488df..43563a0a9 100644 --- a/pep-0557.rst +++ b/pep-0557.rst @@ -257,13 +257,12 @@ per-field information. To satisfy this need for additional information, you can replace the default field value with a call to the provided ``field()`` function. The signature of ``field()`` is:: - def field(*, default=_MISSING, default_factory=_MISSING, repr=True, + def field(*, default=MISSING, default_factory=MISSING, repr=True, hash=None, init=True, compare=True, metadata=None) -The ``_MISSING`` value is a sentinel object used to detect if the -``default`` and ``default_factory`` parameters are provided. Users -should never use ``_MISSING`` or depend on its value. This sentinel -is used because ``None`` is a valid value for ``default``. +The ``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``. The parameters to ``field()`` are: