summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-03-23 21:52:09 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-03-23 21:52:09 (GMT)
commit87d98bcbad6c7bc461da2cbded05cb5a01fc9059 (patch)
tree09763de829940502aa9d6a33b47d4c9fed32024d /Doc/c-api
parentacc5d6b195c9f9819cc7ccab71547fde3f21ab3f (diff)
downloadcpython-87d98bcbad6c7bc461da2cbded05cb5a01fc9059.zip
cpython-87d98bcbad6c7bc461da2cbded05cb5a01fc9059.tar.gz
cpython-87d98bcbad6c7bc461da2cbded05cb5a01fc9059.tar.bz2
PyString_FromString -> PyUnicode_FromString
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/dict.rst9
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/c-api/dict.rst b/Doc/c-api/dict.rst
index c3ef1f4..c748b52 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)