MCPcopy
hub / github.com/django/django / items

Method items

django/utils/datastructures.py:179–185  ·  view source on GitHub ↗

Yield (key, value) pairs, where value is the last item in the list associated with the key.

(self)

Source from the content-addressed store, hash-verified

177 self.setlistdefault(key).append(value)
178
179 def items(self):
180 """
181 Yield (key, value) pairs, where value is the last item in the list
182 associated with the key.
183 """
184 for key in self:
185 yield key, self[key]
186
187 def lists(self):
188 """Yield (key, list) pairs."""

Callers 15

test_multivaluedictMethod · 0.95
normalize_choicesFunction · 0.45
make_hashableFunction · 0.45
_walkFunction · 0.45
get_child_argumentsFunction · 0.45
watched_filesMethod · 0.45
_update_watchesMethod · 0.45
build_policyFunction · 0.45
colorizeFunction · 0.45
patch_cache_controlFunction · 0.45
parse_dateFunction · 0.45
parse_timeFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_multivaluedictMethod · 0.76