MCPcopy
hub / github.com/django/django / fromkeys

Method fromkeys

django/http/request.py:625–635  ·  view source on GitHub ↗

Return a new QueryDict with keys (may be repeated) from an iterable and values from value.

(cls, iterable, value="", mutable=False, encoding=None)

Source from the content-addressed store, hash-verified

623
624 @classmethod
625 def fromkeys(cls, iterable, value="", mutable=False, encoding=None):
626 """
627 Return a new QueryDict with keys (may be repeated) from an iterable and
628 values from value.
629 """
630 q = cls("", mutable=True, encoding=encoding)
631 for key in iterable:
632 q.appendlist(key, value)
633 if not mutable:
634 q._mutable = False
635 return q
636
637 @property
638 def encoding(self):

Callers 15

get_formMethod · 0.80
archive.pyFile · 0.80
__init__Method · 0.80
handleMethod · 0.80
mergeMethod · 0.80
last_executed_queryMethod · 0.80
_fix_for_paramsMethod · 0.80
set_valuesMethod · 0.80

Calls 1

appendlistMethod · 0.45