MCPcopy
hub / github.com/django/django / __setitem__

Method __setitem__

django/http/request.py:651–655  ·  view source on GitHub ↗
(self, key, value)

Source from the content-addressed store, hash-verified

649 raise AttributeError("This QueryDict instance is immutable")
650
651 def __setitem__(self, key, value):
652 self._assert_mutable()
653 key = bytes_to_text(key, self.encoding)
654 value = bytes_to_text(value, self.encoding)
655 super().__setitem__(key, value)
656
657 def __delitem__(self, key):
658 self._assert_mutable()

Callers 4

test_immutabilityMethod · 0.95
test_single_key_valueMethod · 0.95
test_multiple_keysMethod · 0.95
__new__Method · 0.45

Calls 2

_assert_mutableMethod · 0.95
bytes_to_textFunction · 0.85

Tested by 3

test_immutabilityMethod · 0.76
test_single_key_valueMethod · 0.76
test_multiple_keysMethod · 0.76