MCPcopy Index your code
hub / github.com/PyTables/PyTables / _g_getparent

Method _g_getparent

tables/node.py:158–161  ·  view source on GitHub ↗

Return the parent :class:`Group` instance.

(self)

Source from the content-addressed store, hash-verified

156
157 # `_v_parent` is accessed via its file to avoid upwards references.
158 def _g_getparent(self) -> Group:
159 """Return the parent :class:`Group` instance."""
160 parentpath, nodename = split_path(self._v_pathname)
161 return self._v_file._get_node(parentpath)
162
163 _v_parent = property(_g_getparent)
164

Callers

nothing calls this directly

Calls 2

split_pathFunction · 0.85
_get_nodeMethod · 0.80

Tested by

no test coverage detected