MCPcopy Index your code
hub / github.com/ipython/ipython / hset

Method hset

IPython/external/pickleshare.py:121–129  ·  view source on GitHub ↗

hashed set

(self, hashroot, key, value)

Source from the content-addressed store, hash-verified

119 raise
120
121 def hset(self, hashroot, key, value):
122 """hashed set"""
123 hroot = self.root / hashroot
124 if not hroot.is_dir():
125 hroot.mkdir()
126 hfile = hroot / gethashfile(key)
127 d = self.get(hfile, {})
128 d.update({key: value})
129 self[hfile] = d
130
131 def hget(self, hashroot, key, default=_sentinel, fast_only=True):
132 """hashed get"""

Callers

nothing calls this directly

Calls 3

gethashfileFunction · 0.85
getMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected