diff --git a/jedi/api_classes.py b/jedi/api_classes.py index e2e019c4..86215327 100644 --- a/jedi/api_classes.py +++ b/jedi/api_classes.py @@ -364,14 +364,14 @@ class Completion(BaseDefinition): return unicode(self._name.names[-1]) @property - def name_with_signs(self): + def name_with_symbols(self): """ Similar to :meth:`Completion.name`, but like :meth:`Completion.name` - returns also the signs, for example:: + returns also the symbols, for example:: list() - would return ``.append`` and others. + would return ``.append`` and others (which means it adds a dot). """ return self._complete(False) diff --git a/jedi/utils.py b/jedi/utils.py index 8f939501..60df84d9 100644 --- a/jedi/utils.py +++ b/jedi/utils.py @@ -93,7 +93,7 @@ def setup_readline(namespace=__main__.__dict__): self.matches.append(path + dot + name) else: completions = interpreter.completions() - self.matches = [path + dot + c.name_with_signs + self.matches = [path + dot + c.name_with_symbols for c in completions] try: return self.matches[state]