summaryrefslogtreecommitdiffstats
path: root/Objects/dictobject.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-07-19 06:18:55 (GMT)
committerGitHub <noreply@github.com>2020-07-19 06:18:55 (GMT)
commit6bf3237379b17632db52cb39d181e8bac70173f3 (patch)
treef8e603563cc5cae091f48559c5559b1a3d51339a /Objects/dictobject.c
parentc53b310e5926266ce267c44a168165cacd786d6e (diff)
downloadcpython-6bf3237379b17632db52cb39d181e8bac70173f3.zip
cpython-6bf3237379b17632db52cb39d181e8bac70173f3.tar.gz
cpython-6bf3237379b17632db52cb39d181e8bac70173f3.tar.bz2
bpo-41333: Convert OrderedDict.pop() to Argument Clinic (GH-21534)
Diffstat (limited to 'Objects/dictobject.c')
-rw-r--r--Objects/dictobject.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index b1f11b3..ba22489 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -3054,12 +3054,13 @@ dict.pop
D.pop(k[,d]) -> v, remove specified key and return the corresponding value.
-If key is not found, default is returned if given, otherwise KeyError is raised
+If the key is not found, return the default if given; otherwise,
+raise a KeyError.
[clinic start generated code]*/
static PyObject *
dict_pop_impl(PyDictObject *self, PyObject *key, PyObject *default_value)
-/*[clinic end generated code: output=3abb47b89f24c21c input=eeebec7812190348]*/
+/*[clinic end generated code: output=3abb47b89f24c21c input=e221baa01044c44c]*/
{
return _PyDict_Pop((PyObject*)self, key, default_value);
}