File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ Dictionary Objects
73
73
.. index :: single: PyUnicode_FromString()
74
74
75
75
Insert *val * into the dictionary *p * using *key * as a key. *key * should
76
- be a :c:expr: `const char* `. The key object is created using
76
+ be a :c:expr: `const char* ` UTF-8 encoded bytes string . The key object is created using
77
77
``PyUnicode_FromString(key) ``. Return ``0 `` on success or ``-1 `` on
78
78
failure. This function *does not * steal a reference to *val *.
79
79
@@ -88,7 +88,8 @@ Dictionary Objects
88
88
89
89
.. c :function :: int PyDict_DelItemString (PyObject *p, const char *key)
90
90
91
- Remove the entry in dictionary *p * which has a key specified by the string *key *.
91
+ Remove the entry in dictionary *p * which has a key specified by the UTF-8
92
+ encoded bytes string *key *.
92
93
If *key * is not in the dictionary, :exc: `KeyError ` is raised.
93
94
Return ``0 `` on success or ``-1 `` on failure.
94
95
@@ -120,7 +121,8 @@ Dictionary Objects
120
121
.. c :function :: PyObject* PyDict_GetItemString (PyObject *p, const char *key)
121
122
122
123
This is the same as :c:func: `PyDict_GetItem `, but *key * is specified as a
123
- :c:expr: `const char* `, rather than a :c:expr: `PyObject* `.
124
+ :c:expr: `const char* ` UTF-8 encoded bytes string, rather than a
125
+ :c:expr: `PyObject* `.
124
126
125
127
.. note ::
126
128
You can’t perform that action at this time.
0 commit comments