1
0
forked from VimPlug/jedi

class inheritance (only instances)

This commit is contained in:
David Halter
2012-05-03 01:10:07 +02:00
parent 1340ccb33d
commit 744715af5e
6 changed files with 103 additions and 8 deletions

View File

@@ -884,6 +884,13 @@ class Name(Simple):
""" Returns the names in a full string format """
return ".".join(self.names)
def in_iterable(self, iterable):
for i in iterable:
if i.names == self.names:
return True
return False
def __str__(self):
return self.get_code()