MCPcopy
hub / github.com/fluentpython/example-code-2e / meta_get

Method meta_get

21-async/mojifinder/bottle.py:2168–2170  ·  view source on GitHub ↗

Return the value of a meta field for a key.

(self, key, metafield, default=None)

Source from the content-addressed store, hash-verified

2166 del self[key]
2167
2168 def meta_get(self, key, metafield, default=None):
2169 ''' Return the value of a meta field for a key. '''
2170 return self._meta.get(key, {}).get(metafield, default)
2171
2172 def meta_set(self, key, metafield, value):
2173 ''' Set the meta field for a key to a new value. This triggers the

Callers 1

__setitem__Method · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected