Andrei Kulakov <andrei....@gmail.com> added the comment:
I've looked more into it, the issue is that even before an object can be tested with `isinstance()`, both inspect.classify_class_attrs and in pydoc, classdoc local function `spill()` use a `getattr()` call, which triggers the property. So I think my PR is going in the right direction, adding guards in the inspect function and in two `spill()` functions. If `isinstance()` can be fixed to detect class properties correctly, these guards can be simplified but they still need to be there, I think. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45356> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com