![]() ![]() ![]() If key is not in the dictionary, KeyError is raised. Remove the entry in dictionary p with key key. int PyDict_DelItem ( PyObject * p, PyObject * key ) ¶ This function does not steal a reference to val. Insert val 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. Insert val into the dictionary p with a key of key. int PyDict_SetItem ( PyObject * p, PyObject * key, PyObject * val ) ¶ Return a new dictionary that contains the same key-value pairs as p. PyObject * PyDict_Copy ( PyObject * p ) ¶ 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 ) ¶Įmpty an existing dictionary of all key-value pairs. Prevent modification of the dictionary for non-dynamic class types. This is normally used to create a view to Return a types.MappingProxyType object for a mapping whichĮnforces read-only behavior. PyObject * PyDictProxy_New ( PyObject * mapping ) ¶ ![]() Return a new empty dictionary, or NULL on failure. 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 This is the same object as dict in the Python layer. This instance of PyTypeObject represents the Python dictionary This subtype of PyObject represents a Python dictionary object. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |