python-tabulate
python-tabulate copied to clipboard
Robust test for callable objects
- 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
callablefunction. Not only is it more robust, but it makes the intent clear and the code more readable. Requires https://github.com/astanin/python-tabulate/pull/373.