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

Method __iter__

tables/file.py:2245–2262  ·  view source on GitHub ↗

Recursively iterate over the nodes in the tree. This is equivalent to calling :meth:`File.walk_nodes` with no arguments. Examples -------- :: # Recursively list all the nodes in the object tree. h5file = tables.open_file('vlarray1.h5

(self)

Source from the content-addressed store, hash-verified

2243 return True
2244
2245 def __iter__(self) -> Generator[Node]:
2246 """Recursively iterate over the nodes in the tree.
2247
2248 This is equivalent to calling :meth:`File.walk_nodes` with no
2249 arguments.
2250
2251 Examples
2252 --------
2253 ::
2254
2255 # Recursively list all the nodes in the object tree.
2256 h5file = tables.open_file('vlarray1.h5')
2257 print("All nodes in the object tree:")
2258 for node in h5file:
2259 print(node)
2260
2261 """
2262 return self.walk_nodes("/")
2263
2264 def walk_nodes(
2265 self, where: Group | str = "/", classname: str | None = None

Callers

nothing calls this directly

Calls 1

walk_nodesMethod · 0.95

Tested by

no test coverage detected