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

Method clear

box/box.py:1084–1089  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1082 return item
1083
1084 def clear(self):
1085 if self._box_config["frozen_box"]:
1086 raise BoxError("Box is frozen")
1087 super().clear()
1088 self._box_config["__safe_keys"].clear()
1089 self._box_config.pop("__comments", None)
1090
1091 def popitem(self):
1092 if self._box_config["frozen_box"]:

Calls 2

BoxErrorClass · 0.90
popMethod · 0.45