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.
sentinel
rlcompleter
1 parent e60c42d commit 871047dCopy full SHA for 871047d
1 file changed
Lib/rlcompleter.py
@@ -41,7 +41,7 @@
41
__all__ = ["Completer"]
42
43
# Sentinel object to distinguish "missing" from "present but None"
44
-_SENTINEL = object()
+_MISSING = sentinel("MISSING")
45
46
class Completer:
47
def __init__(self, namespace = None):
@@ -200,9 +200,9 @@ def attr_matches(self, text):
200
):
201
value = thisobject.__dict__.get(word)
202
else:
203
- value = getattr(thisobject, word, _SENTINEL)
+ value = getattr(thisobject, word, _MISSING)
204
205
- if value is not _SENTINEL:
+ if value is not _MISSING:
206
matches.append(self._callable_postfix(value, match))
207
elif word in getattr(type(thisobject), '__slots__', ()):
208
matches.append(match)
0 commit comments