Ezio Melotti added the comment: Would using callable() instead of inspect.isfunction() be ok? ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue21740> _______________________________________