diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2019-09-14 12:24:05 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-14 12:24:05 +0300 |
| commit | 279f44678c8b84a183f9eeb85e0b086228154497 (patch) | |
| tree | 9cacd41975bf15ab7a94fc5ba6a2df57f8e02ee5 /Objects/clinic/dictobject.c.h | |
| parent | d057b896f97e6d7447b9bf9246770c41cf205299 (diff) | |
| download | cpython-git-279f44678c8b84a183f9eeb85e0b086228154497.tar.gz | |
bpo-37206: Unrepresentable default values no longer represented as None. (GH-13933)
In ArgumentClinic, value "NULL" should now be used only for unrepresentable default values
(like in the optional third parameter of getattr). "None" should be used if None is accepted
as argument and passing None has the same effect as not passing the argument at all.
Diffstat (limited to 'Objects/clinic/dictobject.c.h')
| -rw-r--r-- | Objects/clinic/dictobject.c.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/clinic/dictobject.c.h b/Objects/clinic/dictobject.c.h index b87244d873..7395e3bceb 100644 --- a/Objects/clinic/dictobject.c.h +++ b/Objects/clinic/dictobject.c.h @@ -117,10 +117,10 @@ exit: } PyDoc_STRVAR(dict_pop__doc__, -"pop($self, key, default=None, /)\n" +"pop($self, key, default=<unrepresentable>, /)\n" "--\n" "\n" -"Remove specified key and return the corresponding value.\n" +"D.pop(k[,d]) -> v, remove specified key and return the corresponding value.\n" "\n" "If key is not found, default is returned if given, otherwise KeyError is raised"); @@ -190,4 +190,4 @@ dict___reversed__(PyDictObject *self, PyObject *Py_UNUSED(ignored)) { return dict___reversed___impl(self); } -/*[clinic end generated code: output=0fd5cafc61a51d3c input=a9049054013a1b77]*/ +/*[clinic end generated code: output=4d98145508da8fa3 input=a9049054013a1b77]*/ |
