
Int PyDict_DelItem ( PyObject *p, PyObject *key ) ¶ Remove the entry in dictionary p with key key. Insert value into the dictionary p using key as a key. Int PyDict_SetItemString ( PyObject *p, const char *key, PyObject *val ) ¶

Hashable if it isn’t, TypeError will be raised. Int PyDict_SetItem ( PyObject *p, PyObject *key, PyObject *val ) ¶ Insert value into the dictionary p with a key of key. Return a new dictionary that contains the same key-value pairs as p. PyObject* PyDict_Copy ( PyObject *p ) ¶ Return value: New reference. This is equivalent to the Python expression key in p. Int PyDict_Contains ( PyObject *p, PyObject *key ) ¶ĭetermine if dictionary p contains key. Void PyDict_Clear ( PyObject *p ) ¶ Empty an existing dictionary of all key-value pairs. This is normally used to create a proxy to prevent modification of the Return a proxy object for a mapping which enforces read-only behavior. PyObject* PyDictProxy_New ( PyObject *dict ) ¶ Return value: New reference. Return a new empty dictionary, or NULL on failure. PyObject* PyDict_New ( ) ¶ Return value: New reference. Return true if p is a dict object, but not an instance of a subtype of Return true if p is a dict object or an instance of a subtype of the dictĬhanged in version 2.2: Allowed subtypes to be accepted. This is exposed to Python programs as dict and This instance of PyTypeObject represents the Python dictionary

Dictionary Objects ¶ PyDictObject ¶ This subtype of PyObject represents a Python dictionary object.
