Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acc5d6b commit 87d98bcCopy full SHA for 87d98bc
1 file changed
Doc/c-api/dict.rst
@@ -73,11 +73,12 @@ Dictionary Objects
73
74
.. cfunction:: int PyDict_SetItemString(PyObject *p, const char *key, PyObject *val)
75
76
- .. index:: single: PyString_FromString()
+ .. index:: single: PyUnicode_FromString()
77
78
- Insert *value* into the dictionary *p* using *key* as a key. *key* should be a
79
- :ctype:`char\*`. The key object is created using ``PyString_FromString(key)``.
80
- Return ``0`` on success or ``-1`` on failure.
+ Insert *value* into the dictionary *p* using *key* as a key. *key* should be
+ a :ctype:`char\*`. The key object is created using
+ :cfunc:`PyUnicode_FromString(key)`. Return ``0`` on success or ``-1`` on
81
+ failure.
82
83
84
.. cfunction:: int PyDict_DelItem(PyObject *p, PyObject *key)
0 commit comments