MCPcopy Index your code
hub / github.com/python/cpython / __set

Method __set

Lib/http/cookies.py:503–507  ·  view source on GitHub ↗

Private method for setting a cookie's value

(self, key, real_value, coded_value)

Source from the content-addressed store, hash-verified

501 self.load(input)
502
503 def __set(self, key, real_value, coded_value):
504 """Private method for setting a cookie's value"""
505 M = self.get(key, Morsel())
506 M.set(key, real_value, coded_value)
507 dict.__setitem__(self, key, M)
508
509 def __setitem__(self, key, value):
510 """Dictionary style assignment."""

Callers 3

__setitem__Method · 0.95
__parse_stringMethod · 0.95
__set__Method · 0.80

Calls 4

MorselClass · 0.85
getMethod · 0.45
setMethod · 0.45
__setitem__Method · 0.45

Tested by 1

__set__Method · 0.64