python-tabulate icon indicating copy to clipboard operation
python-tabulate copied to clipboard

Pretty-print tabular data in Python, a library and a command-line utility. Repository migrated from bitbucket.org/astanin/python-tabulate.

Results 155 python-tabulate issues
Sort by recently updated
recently updated
newest added

maxcolwidth → maxcolwidths maxheadercolwidth → maxheadercolwidths

Consistency between processing of `maxcolwidths` and `maxheadercolwidths`. https://github.com/astanin/python-tabulate/blob/74885be915e2ac611585f5398f23c402532c1059/tabulate/__init__.py#L2250-L2253 https://github.com/astanin/python-tabulate/blob/74885be915e2ac611585f5398f23c402532c1059/tabulate/__init__.py#L2265 Fixes #365.

Whenever the parameter `maxheadercolwidths` is not None, an IndexError is raised when trying to print an empty table The issue specifically is here: https://github.com/astanin/python-tabulate/blob/master/tabulate/__init__.py#L2253 ``` if maxheadercolwidths is not None:...

- If the object implements a custom `__getattr__`, or if its `__call__` is itself not callable, you may get misleading results. - Instead use the built-in `callable` function. Not only...

Requires https://github.com/astanin/python-tabulate/pull/373.

It is not any safer than normal property access. It feels like the intent might have been `hasattr()` instead of `getattr()`, but the initial commit e2086c3 appears to : -...

The `sorted()` function returns a list: https://docs.python.org/3/library/functions.html#sorted Requires https://github.com/astanin/python-tabulate/pull/373.

String interpolation is about converting arguments to strings. Explicitly converting to string is useless and hurts readability. Requires https://github.com/astanin/python-tabulate/pull/373.

See https://github.com/pre-commit/pre-commit-hooks/issues/344.