MCPcopy Create free account
hub / github.com/datapane/datapane / replace

Method replace

python-client/src/datapane/_vendor/bottle.py:2170–2172  ·  view source on GitHub ↗

Replace the list of values with a single value.

(self, key, value)

Source from the content-addressed store, hash-verified

2168 self.dict.setdefault(key, []).append(value)
2169
2170 def replace(self, key, value):
2171 """ Replace the list of values with a single value. """
2172 self.dict[key] = [value]
2173
2174 def getall(self, key):
2175 """ Return a (possibly empty) list of values for a key. """

Callers 15

updateEditorAtCursorFunction · 0.45
bracesToCdataFunction · 0.45
cDataToBracesFunction · 0.45
addOuterPageFunction · 0.45
getCssVarFunction · 0.45
formkit.tsFile · 0.45
swapFunction · 0.45
_hkeyFunction · 0.45
_ekeyMethod · 0.45
filenameMethod · 0.45
_parse_http_headerFunction · 0.45
_parse_qslFunction · 0.45

Calls

no outgoing calls

Tested by 1

addOuterPageFunction · 0.36