◐ Shell
clean mode source ↗

bpo-45356: fix incorrect access of class property in pydoc and inspect by akulakov · Pull Request #29239 · python/cpython

Expand Up @@ -885,6 +885,8 @@ def spill(msg, attrs, predicate): push(msg) for name, kind, homecls, value in ok: try: if inspect._is_class_property(object, name): raise Exception("class property") value = getattr(object, name) except Exception: # Some descriptors may meet a failure in their __get__. Expand Down Expand Up @@ -1368,6 +1370,8 @@ def spill(msg, attrs, predicate): push(msg) for name, kind, homecls, value in ok: try: if inspect._is_class_property(object, name): raise Exception("class property") value = getattr(object, name) except Exception: # Some descriptors may meet a failure in their __get__. Expand Down