summaryrefslogtreecommitdiffstats
path: root/Include/dictobject.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-03-26 20:10:51 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2012-03-26 20:10:51 (GMT)
commit3c1e48176e077bbbf85183874f432de6d4ac8f88 (patch)
treedd20a4a078f04f76e7f1526c268b0ec851c1bc2c /Include/dictobject.h
parent70b2e1e7d99431cf71c8177dcf42dba03435177e (diff)
downloadcpython-3c1e48176e077bbbf85183874f432de6d4ac8f88.zip
cpython-3c1e48176e077bbbf85183874f432de6d4ac8f88.tar.gz
cpython-3c1e48176e077bbbf85183874f432de6d4ac8f88.tar.bz2
Issue #14383: Add _PyDict_GetItemId() and _PyDict_SetItemId() functions
These functions simplify the usage of static constant Unicode strings. Generalize the usage of _Py_Identifier in ceval.c and typeobject.c.
Diffstat (limited to 'Include/dictobject.h')
-rw-r--r--Include/dictobject.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/dictobject.h b/Include/dictobject.h
index ed44e20..63c810e 100644
--- a/Include/dictobject.h
+++ b/Include/dictobject.h
@@ -155,7 +155,9 @@ PyAPI_FUNC(int) PyDict_MergeFromSeq2(PyObject *d,
int override);
PyAPI_FUNC(PyObject *) PyDict_GetItemString(PyObject *dp, const char *key);
+PyAPI_FUNC(PyObject *) _PyDict_GetItemId(PyObject *dp, struct _Py_Identifier *key);
PyAPI_FUNC(int) PyDict_SetItemString(PyObject *dp, const char *key, PyObject *item);
+PyAPI_FUNC(int) _PyDict_SetItemId(PyObject *dp, struct _Py_Identifier *key, PyObject *item);
PyAPI_FUNC(int) PyDict_DelItemString(PyObject *dp, const char *key);
#ifdef __cplusplus