• Home
  • Raw
  • Download

Lines Matching refs:dictionary

8 .. index:: object: dictionary
13 This subtype of :c:type:`PyObject` represents a Python dictionary object.
22 This instance of :c:type:`PyTypeObject` represents the Python dictionary
46 Return a new empty dictionary, or *NULL* on failure.
53 dictionary for non-dynamic class types.
60 Empty an existing dictionary of all key-value pairs.
65 Determine if dictionary *p* contains *key*. If an item in *p* is matches
74 Return a new dictionary that contains the same key-value pairs as *p*.
81 Insert *value* into the dictionary *p* with a key of *key*. *key* must be
90 Insert *value* into the dictionary *p* using *key* as a key. *key* should
98 Remove the entry in dictionary *p* with key *key*. *key* must be hashable;
105 Remove the entry in dictionary *p* which has a key specified by the string
111 Return the object from dictionary *p* which has a key *key*. Return *NULL*
124 dictionary, as in the dictionary method :meth:`dict.items`.
129 Return a :c:type:`PyListObject` containing all the keys from the dictionary,
130 as in the dictionary method :meth:`dict.keys`.
136 dictionary *p*, as in the dictionary method :meth:`dict.values`.
143 Return the number of items in the dictionary. This is equivalent to
144 ``len(p)`` on a dictionary.
153 Iterate over all key-value pairs in the dictionary *p*. The
156 function returns true for each pair in the dictionary, and false once all
161 value represents offsets within the internal dictionary structure, and
174 The dictionary *p* should not be mutated during iteration. It is safe
176 dictionary, but only so long as the set of keys does not change. For
201 Iterate over mapping object *b* adding key-value pairs to dictionary *a*.
202 *b* may be a dictionary, or any object supporting :c:func:`PyMapping_Keys`
224 Update or merge into dictionary *a*, from the key-value pairs in *seq2*.