mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
PyString_FromString -> PyUnicode_FromString
This commit is contained in:
parent
acc5d6b195
commit
87d98bcbad
1 changed files with 5 additions and 4 deletions
|
|
@ -73,11 +73,12 @@ Dictionary Objects
|
||||||
|
|
||||||
.. cfunction:: int PyDict_SetItemString(PyObject *p, const char *key, PyObject *val)
|
.. 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
|
Insert *value* into the dictionary *p* using *key* as a key. *key* should be
|
||||||
:ctype:`char\*`. The key object is created using ``PyString_FromString(key)``.
|
a :ctype:`char\*`. The key object is created using
|
||||||
Return ``0`` on success or ``-1`` on failure.
|
:cfunc:`PyUnicode_FromString(key)`. Return ``0`` on success or ``-1`` on
|
||||||
|
failure.
|
||||||
|
|
||||||
|
|
||||||
.. cfunction:: int PyDict_DelItem(PyObject *p, PyObject *key)
|
.. cfunction:: int PyDict_DelItem(PyObject *p, PyObject *key)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue