[Python-checkins] r70556 - python/branches/py3k/Doc/c-api/dict.rst

benjamin.peterson python-checkins at python.org
Mon Mar 23 22:52:09 CET 2009


Author: benjamin.peterson
Date: Mon Mar 23 22:52:09 2009
New Revision: 70556

Log:
PyString_FromString -> PyUnicode_FromString

Modified:
   python/branches/py3k/Doc/c-api/dict.rst

Modified: python/branches/py3k/Doc/c-api/dict.rst
==============================================================================
--- python/branches/py3k/Doc/c-api/dict.rst	(original)
+++ python/branches/py3k/Doc/c-api/dict.rst	Mon Mar 23 22:52:09 2009
@@ -73,11 +73,12 @@
 
 .. 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)


More information about the Python-checkins mailing list