From: Benjamin Peterson Date: Mon, 23 Mar 2009 21:52:09 +0000 (+0000) Subject: PyString_FromString -> PyUnicode_FromString X-Git-Tag: v3.1a2~224 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=87d98bcbad6c7bc461da2cbded05cb5a01fc9059;p=python PyString_FromString -> PyUnicode_FromString --- diff --git a/Doc/c-api/dict.rst b/Doc/c-api/dict.rst index c3ef1f4300..c748b52dcd 100644 --- a/Doc/c-api/dict.rst +++ b/Doc/c-api/dict.rst @@ -73,11 +73,12 @@ Dictionary Objects .. cfunction:: int PyDict_SetItemString(PyObject *p, const char *key, PyObject *val) - .. index:: single: PyString_FromString() + .. index:: single: PyUnicode_FromString() - Insert *value* into the dictionary *p* using *key* as a key. *key* should be a - :ctype:`char\*`. The key object is created using ``PyString_FromString(key)``. - 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 + failure. .. cfunction:: int PyDict_DelItem(PyObject *p, PyObject *key)