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

Function list_logged_instances

tables/utils.py:344–351  ·  view source on GitHub ↗

Write to file the list of loggen instances.

(classes: str, file: TextIO = sys.stdout)

Source from the content-addressed store, hash-verified

342
343
344def list_logged_instances(classes: str, file: TextIO = sys.stdout) -> None:
345 """Write to file the list of loggen instances."""
346 for classname in string_to_classes(classes):
347 file.write(f"\n{classname}:\n")
348 for ref in tracked_classes[classname]:
349 obj = ref()
350 if obj is not None:
351 file.write(" %s\n" % repr(obj))
352
353
354def dump_logged_instances(classes: str, file: TextIO = sys.stdout) -> None:

Callers

nothing calls this directly

Calls 2

string_to_classesFunction · 0.85
writeMethod · 0.80

Tested by

no test coverage detected