MCPcopy Create free account
hub / github.com/cdgriffith/Box / clear

Method clear

box/box.py:1095–1100  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1093 return item
1094
1095 def clear(self):
1096 if self._box_config["frozen_box"]:
1097 raise BoxError("Box is frozen")
1098 super().clear()
1099 self._box_config["__safe_keys"].clear()
1100 self._box_config.pop("__comments", None)
1101
1102 def popitem(self):
1103 if self._box_config["frozen_box"]:

Calls 2

BoxErrorClass · 0.90
popMethod · 0.45