1
0
forked from VimPlug/jedi

CompiledObject.name returns a Name now, not a string. This is more consistent with the Jedi design and doesn't lead to bugs while ducktyping.

This commit is contained in:
Dave Halter
2014-09-03 19:43:21 +02:00
parent 18204c4c19
commit bb5ffe9343
5 changed files with 8 additions and 10 deletions

View File

@@ -188,12 +188,10 @@ class CompiledObject(Base):
pass # self.obj maynot have an __iter__ method.
return result
"""
@property
def name(self):
# might not exist sometimes (raises AttributeError)
return self._cls().obj.__name__
"""
return FakeName(self._cls().obj.__name__, self)
def _execute_function(self, evaluator, params):
if self.type() != 'function':