We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64f5954 commit 3ac2093Copy full SHA for 3ac2093
Lib/inspect.py
@@ -347,7 +347,10 @@ def getmembers(object, predicate=None):
347
# like calling their __get__ (see bug #1785), so fall back to
348
# looking in the __dict__.
349
try:
350
- value = getattr_static(object, key)
+ if isinstance(getattr_static(object, key), property):
351
+ value = getattr_static(object, key)
352
+ else:
353
+ value = getattr(object, key)
354
# handle the duplicate key
355
if key in processed:
356
raise AttributeError
0 commit comments