fixed getattr with array call

This commit is contained in:
David Halter
2013-07-23 14:30:18 +02:00
parent db17c27bb8
commit d78b72b046
2 changed files with 5 additions and 0 deletions

View File

@@ -414,6 +414,9 @@ class Execution(Executable):
continue
for arr_name in names:
if not isinstance(arr_name, Instance):
debug.warning('getattr called without str')
continue
if len(arr_name.var_args) != 1:
debug.warning('jedi getattr is too simple')
key = arr_name.var_args[0]

View File

@@ -495,6 +495,8 @@ getattr()
getattr(str)
#?
getattr(getattr, 1)
#?
getattr(str, [])
class Base():