MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / setdefault

Method setdefault

tools/python-3.11.9-amd64/Lib/http/cookies.py:315–319  ·  view source on GitHub ↗
(self, key, val=None)

Source from the content-addressed store, hash-verified

313 dict.__setitem__(self, K, V)
314
315 def setdefault(self, key, val=None):
316 key = key.lower()
317 if key not in self._reserved:
318 raise CookieError("Invalid attribute %r" % (key,))
319 return dict.setdefault(self, key, val)
320
321 def __eq__(self, morsel):
322 if not isinstance(morsel, Morsel):

Callers 11

decode_paramsFunction · 0.45
run_cgiMethod · 0.45
type_reprFunction · 0.45
type_reprFunction · 0.45
make_dfaMethod · 0.45
transform_memberMethod · 0.45
__getattr__Method · 0.45
_assert_highlightingMethod · 0.45
encoder.pyFile · 0.45
__new__Method · 0.45
add_handlerMethod · 0.45

Calls 2

CookieErrorClass · 0.85
lowerMethod · 0.45

Tested by 1

_assert_highlightingMethod · 0.36