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

Method __repr__

tables/table.py:3223–3241  ·  view source on GitHub ↗

Return the string representation of `Table` objects. This provides column metainfo in addition to standard __str__.

(self)

Source from the content-addressed store, hash-verified

3221 super()._f_close(False)
3222
3223 def __repr__(self) -> str:
3224 """Return the string representation of `Table` objects.
3225
3226 This provides column metainfo in addition to standard __str__.
3227 """
3228 if self.indexed:
3229 return f"""\
3230{self}
3231 description := {self.description!r}
3232 byteorder := {self.byteorder!r}
3233 chunkshape := {self.chunkshape!r}
3234 autoindex := {self.autoindex!r}
3235 colindexes := {_ColIndexes(self.colindexes)!r}"""
3236 else:
3237 return f"""\
3238{self}
3239 description := {self.description!r}
3240 byteorder := {self.byteorder!r}
3241 chunkshape := {self.chunkshape!r}"""
3242
3243
3244class Cols:

Callers

nothing calls this directly

Calls 1

_ColIndexesClass · 0.85

Tested by

no test coverage detected