Larry Hastings added the comment: My solution for pydoc was to call isroutine() instead of isfunction(), and yes handle it throwing an exception.
(I just checked, and I wasn't catching TypeError, only ValueError. I'll fix that in my next patch for #20189.) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17481> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com