同步操作将从 OpenHarmony-SIG/python 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#ifndef Py_DICTOBJECT_H#define Py_DICTOBJECT_H#ifdef __cplusplusextern "C" {#endif/* Dictionary object type -- mapping from hashable object to object *//* The distribution includes a separate file, Objects/dictnotes.txt,describing explorations into dictionary design and optimization.It covers typical dictionary use patterns, the parameters fortuning dictionaries, and several ideas for possible optimizations.*/PyAPI_DATA(PyTypeObject) PyDict_Type;#define PyDict_Check(op) \PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_DICT_SUBCLASS)#define PyDict_CheckExact(op) (Py_TYPE(op) == &PyDict_Type)PyAPI_FUNC(PyObject *) PyDict_New(void);PyAPI_FUNC(PyObject *) PyDict_GetItem(PyObject *mp, PyObject *key);PyAPI_FUNC(PyObject *) PyDict_GetItemWithError(PyObject *mp, PyObject *key);PyAPI_FUNC(int) PyDict_SetItem(PyObject *mp, PyObject *key, PyObject *item);PyAPI_FUNC(int) PyDict_DelItem(PyObject *mp, PyObject *key);PyAPI_FUNC(void) PyDict_Clear(PyObject *mp);PyAPI_FUNC(int) PyDict_Next(PyObject *mp, Py_ssize_t *pos, PyObject **key, PyObject **value);PyAPI_FUNC(PyObject *) PyDict_Keys(PyObject *mp);PyAPI_FUNC(PyObject *) PyDict_Values(PyObject *mp);PyAPI_FUNC(PyObject *) PyDict_Items(PyObject *mp);PyAPI_FUNC(Py_ssize_t) PyDict_Size(PyObject *mp);PyAPI_FUNC(PyObject *) PyDict_Copy(PyObject *mp);PyAPI_FUNC(int) PyDict_Contains(PyObject *mp, PyObject *key);/* PyDict_Update(mp, other) is equivalent to PyDict_Merge(mp, other, 1). */PyAPI_FUNC(int) PyDict_Update(PyObject *mp, PyObject *other);/* PyDict_Merge updates/merges from a mapping object (an object thatsupports PyMapping_Keys() and PyObject_GetItem()). If override is true,the last occurrence of a key wins, else the first. The Pythondict.update(other) is equivalent to PyDict_Merge(dict, other, 1).*/PyAPI_FUNC(int) PyDict_Merge(PyObject *mp,PyObject *other,int override);/* PyDict_MergeFromSeq2 updates/merges from an iterable object producingiterable objects of length 2. If override is true, the last occurrenceof a key wins, else the first. The Python dict constructor dict(seq2)is equivalent to dict={}; PyDict_MergeFromSeq(dict, seq2, 1).*/PyAPI_FUNC(int) PyDict_MergeFromSeq2(PyObject *d,PyObject *seq2,int override);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);/* Dictionary (keys, values, items) views */PyAPI_DATA(PyTypeObject) PyDictKeys_Type;PyAPI_DATA(PyTypeObject) PyDictValues_Type;PyAPI_DATA(PyTypeObject) PyDictItems_Type;#define PyDictKeys_Check(op) PyObject_TypeCheck(op, &PyDictKeys_Type)#define PyDictValues_Check(op) PyObject_TypeCheck(op, &PyDictValues_Type)#define PyDictItems_Check(op) PyObject_TypeCheck(op, &PyDictItems_Type)/* This excludes Values, since they are not sets. */# define PyDictViewSet_Check(op) \(PyDictKeys_Check(op) || PyDictItems_Check(op))/* Dictionary (key, value, items) iterators */PyAPI_DATA(PyTypeObject) PyDictIterKey_Type;PyAPI_DATA(PyTypeObject) PyDictIterValue_Type;PyAPI_DATA(PyTypeObject) PyDictIterItem_Type;PyAPI_DATA(PyTypeObject) PyDictRevIterKey_Type;PyAPI_DATA(PyTypeObject) PyDictRevIterItem_Type;PyAPI_DATA(PyTypeObject) PyDictRevIterValue_Type;#ifndef Py_LIMITED_API# define Py_CPYTHON_DICTOBJECT_H# include "cpython/dictobject.h"# undef Py_CPYTHON_DICTOBJECT_H#endif#ifdef __cplusplus}#endif#endif /* !Py_DICTOBJECT_H */
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。