Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 87d98bc

Browse files
committed
PyString_FromString -> PyUnicode_FromString
1 parent acc5d6b commit 87d98bc

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Doc/c-api/dict.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,12 @@ Dictionary Objects
7373

7474
.. cfunction:: int PyDict_SetItemString(PyObject *p, const char *key, PyObject *val)
7575

76-
.. index:: single: PyString_FromString()
76+
.. index:: single: PyUnicode_FromString()
7777

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.
78+
Insert *value* into the dictionary *p* using *key* as a key. *key* should be
79+
a :ctype:`char\*`. The key object is created using
80+
:cfunc:`PyUnicode_FromString(key)`. Return ``0`` on success or ``-1`` on
81+
failure.
8182

8283

8384
.. cfunction:: int PyDict_DelItem(PyObject *p, PyObject *key)

0 commit comments

Comments
 (0)