• Home
  • Raw
  • Download

Lines Matching refs:dictionary

8 .. index:: object: dictionary
13 This subtype of :c:type:`PyObject` represents a Python dictionary object.
18 This instance of :c:type:`PyTypeObject` represents the Python dictionary
36 Return a new empty dictionary, or ``NULL`` on failure.
43 prevent modification of the dictionary for non-dynamic class types.
48 Empty an existing dictionary of all key-value pairs.
53 Determine if dictionary *p* contains *key*. If an item in *p* is matches
60 Return a new dictionary that contains the same key-value pairs as *p*.
65 Insert *val* into the dictionary *p* with a key of *key*. *key* must be
75 Insert *val* into the dictionary *p* using *key* as a key. *key* should
83 Remove the entry in dictionary *p* with key *key*. *key* must be hashable;
85 If *key* is not in the dictionary, :exc:`KeyError` is raised.
91 Remove the entry in dictionary *p* which has a key specified by the string *key*.
92 If *key* is not in the dictionary, :exc:`KeyError` is raised.
98 Return the object from dictionary *p* which has a key *key*. Return ``NULL``
132 returns the value corresponding to *key* from the dictionary *p*. If the key
141 Return a :c:type:`PyListObject` containing all the items from the dictionary.
146 Return a :c:type:`PyListObject` containing all the keys from the dictionary.
151 Return a :c:type:`PyListObject` containing all the values from the dictionary
159 Return the number of items in the dictionary. This is equivalent to
160 ``len(p)`` on a dictionary.
165 Iterate over all key-value pairs in the dictionary *p*. The
168 function returns true for each pair in the dictionary, and false once all
173 value represents offsets within the internal dictionary structure, and
186 The dictionary *p* should not be mutated during iteration. It is safe to
187 modify the values of the keys as you iterate over the dictionary, but only
211 Iterate over mapping object *b* adding key-value pairs to dictionary *a*.
212 *b* may be a dictionary, or any object supporting :c:func:`PyMapping_Keys`
230 Update or merge into dictionary *a*, from the key-value pairs in *seq2*.