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

Method _g_del_location

tables/node.py:432–451  ·  view source on GitHub ↗

Clear location-dependent attributes. This also triggers the removal of file references to this node.

(self)

Source from the content-addressed store, hash-verified

430 self._g_update_dependent()
431
432 def _g_del_location(self) -> None:
433 """Clear location-dependent attributes.
434
435 This also triggers the removal of file references to this node.
436
437 """
438 node_manager = self._v_file._node_manager
439 pathname = self._v_pathname
440
441 if not self._v__deleting:
442 node_manager.drop_from_cache(pathname)
443 # Note: node_manager.drop_node does not remove the node from the
444 # registry if it is still open
445 node_manager.registry.pop(pathname, None)
446
447 self._v_file = None
448 self._v_isopen = False
449 self._v_pathname = None
450 self._v_name = None
451 self._v_depth = None
452
453 def _g_post_init_hook(self) -> None:
454 """Code to be run after node creation and before creation logging."""

Callers 2

_f_closeMethod · 0.95
_g_moveMethod · 0.95

Calls 2

drop_from_cacheMethod · 0.80
popMethod · 0.80

Tested by

no test coverage detected