MCPcopy Create free account
hub / github.com/PyTables/PyTables / _g_reset

Method _g_reset

tables/group.py:1298–1314  ·  view source on GitHub ↗

Empty action storage (nodes and attributes). This method empties all action storage kept in this node: nodes and attributes.

(self)

Source from the content-addressed store, hash-verified

1296 )
1297
1298 def _g_reset(self) -> None:
1299 """Empty action storage (nodes and attributes).
1300
1301 This method empties all action storage kept in this node: nodes
1302 and attributes.
1303
1304 """
1305 # Remove action storage nodes.
1306 for child in list(self._v_children.values()):
1307 child._g_remove(True, True)
1308
1309 # Remove action storage attributes.
1310 attrs = self._v_attrs
1311 shname = self._c_shadow_name_re
1312 for attrname in attrs._v_attrnamesuser[:]:
1313 if shname.match(attrname):
1314 attrs._g__delattr(attrname)

Callers 1

_logMethod · 0.80

Calls 3

_g__delattrMethod · 0.80
valuesMethod · 0.45
_g_removeMethod · 0.45

Tested by

no test coverage detected