python keyword completion, fixes #21

This commit is contained in:
David Halter
2012-09-30 15:56:57 +02:00
parent 920d02e3da
commit 511369ad88
3 changed files with 16 additions and 7 deletions
+5
View File
@@ -41,6 +41,11 @@ class Keyword(object):
def get_parent_until(self):
return builtin.builtin_scope
@property
def names(self):
""" For a `parsing.Name` like comparision """
return [self.name]
@property
def docstr(self):
return imitate_pydoc(self.name)