MCPcopy Index your code
hub / github.com/clips/pattern / setdefault

Method setdefault

pattern/web/feed/feedparser.py:412–416  ·  view source on GitHub ↗
(self, key, value)

Source from the content-addressed store, hash-verified

410 return dict.__setitem__(self, key, value)
411
412 def setdefault(self, key, value):
413 if key not in self:
414 self[key] = value
415 return value
416 return self[key]
417
418 def __getattr__(self, key):
419 # __getattribute__() is called first; this will be called

Callers 15

popMethod · 0.45
_saveMethod · 0.45
_start_imageMethod · 0.45
_start_textinputMethod · 0.45
_start_authorMethod · 0.45
_start_contributorMethod · 0.45
_start_dc_contributorMethod · 0.45
_save_authorMethod · 0.45
_save_contributorMethod · 0.45
_sync_author_detailMethod · 0.45
_start_cc_licenseMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected