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

Method __str__

tables/index.py:2448–2461  ·  view source on GitHub ↗

Return the string representation of the Index object.

(self)

Source from the content-addressed store, hash-verified

2446 super()._f_remove(True)
2447
2448 def __str__(self) -> str:
2449 """Return the string representation of the Index object."""
2450 # The filters
2451 filters = []
2452 if self.filters.complevel:
2453 if self.filters.shuffle:
2454 filters.append("shuffle")
2455 if self.filters.bitshuffle:
2456 filters.append("bitshuffle")
2457 filters.append(f"{self.filters.complib}({self.filters.complevel})")
2458 return (
2459 f"Index({self.optlevel}, "
2460 f"{self.kind}{', '.join(filters)}).is_csi={self.is_csi}"
2461 )
2462
2463 def __repr__(self) -> str:
2464 """Return the string representation including also metainfo."""

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected