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 acaf3b9 commit 93d9087Copy full SHA for 93d9087
1 file changed
Lib/rlcompleter.py
@@ -179,13 +179,10 @@ def attr_matches(self, text):
179
# property method, which is not desirable.
180
matches.append(match)
181
continue
182
- try:
183
- val = getattr(thisobject, word)
184
- except Exception:
185
- pass # Include even if attribute not set
+ if (value := getattr(thisobject, word, None)) is not None:
+ matches.append(self._callable_postfix(value, match))
186
else:
187
- match = self._callable_postfix(val, match)
188
- matches.append(match)
+ matches.append(match)
189
if matches or not noprefix:
190
break
191
if noprefix == '_':
0 commit comments