MCPcopy
hub / github.com/django/django / _reset_dicts

Method _reset_dicts

django/template/context.py:32–38  ·  view source on GitHub ↗
(self, value=None)

Source from the content-addressed store, hash-verified

30 self._reset_dicts(dict_)
31
32 def _reset_dicts(self, value=None):
33 builtins = {"True": True, "False": False, "None": None}
34 self.dicts = [builtins]
35 if isinstance(value, BaseContext):
36 self.dicts += value.dicts[1:]
37 elif value is not None:
38 self.dicts.append(value)
39
40 def __copy__(self):
41 duplicate = BaseContext()

Callers 2

__init__Method · 0.95
newMethod · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected