File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -81,14 +81,16 @@ Dictionary Objects
8181.. c :function :: int PyDict_DelItem (PyObject *p, PyObject *key)
8282
8383 Remove the entry in dictionary *p * with key *key *. *key * must be hashable;
84- if it isn't, :exc: `TypeError ` is raised. Return ``0 `` on success or ``-1 ``
85- on failure.
84+ if it isn't, :exc: `TypeError ` is raised.
85+ If *key * is not in the dictionary, :exc: `KeyError ` is raised.
86+ Return ``0 `` on success or ``-1 `` on failure.
8687
8788
8889.. c :function :: int PyDict_DelItemString (PyObject *p, const char *key)
8990
90- Remove the entry in dictionary *p * which has a key specified by the string
91- *key *. Return ``0 `` on success or ``-1 `` on failure.
91+ Remove the entry in dictionary *p * which has a key specified by the string *key *.
92+ If *key * is not in the dictionary, :exc: `KeyError ` is raised.
93+ Return ``0 `` on success or ``-1 `` on failure.
9294
9395
9496.. c :function :: PyObject* PyDict_GetItem (PyObject *p, PyObject *key)
You can’t perform that action at this time.
0 commit comments