diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-12-11 13:21:12 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-12-11 13:21:12 (GMT) |
commit | 32b4a1ba62abe01684cbd1486274c7a40f81d78c (patch) | |
tree | 7c927e3180677f9e3217031507025f9a0f0511f1 /Include | |
parent | b023381466b5dad8545191bb8ab0c37eb1a24c22 (diff) | |
download | cpython-32b4a1ba62abe01684cbd1486274c7a40f81d78c.zip cpython-32b4a1ba62abe01684cbd1486274c7a40f81d78c.tar.gz cpython-32b4a1ba62abe01684cbd1486274c7a40f81d78c.tar.bz2 |
Constify char* API. Fixes #651363. 2.2 candidate.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/dictobject.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Include/dictobject.h b/Include/dictobject.h index 36053e8..d3a0fc5 100644 --- a/Include/dictobject.h +++ b/Include/dictobject.h @@ -116,9 +116,9 @@ PyAPI_FUNC(int) PyDict_MergeFromSeq2(PyObject *d, PyObject *seq2, int override); -PyAPI_FUNC(PyObject *) PyDict_GetItemString(PyObject *dp, char *key); -PyAPI_FUNC(int) PyDict_SetItemString(PyObject *dp, char *key, PyObject *item); -PyAPI_FUNC(int) PyDict_DelItemString(PyObject *dp, char *key); +PyAPI_FUNC(PyObject *) PyDict_GetItemString(PyObject *dp, const char *key); +PyAPI_FUNC(int) PyDict_SetItemString(PyObject *dp, const char *key, PyObject *item); +PyAPI_FUNC(int) PyDict_DelItemString(PyObject *dp, const char *key); #ifdef __cplusplus } |