1
0
forked from VimPlug/jedi

hasattr checks working now, #408

This commit is contained in:
Dave Halter
2014-06-10 16:08:32 +02:00
parent bba120d906
commit 63868feb5d
3 changed files with 41 additions and 10 deletions

View File

@@ -55,11 +55,13 @@ except [AttributeError]: pass
# kind of similar: hasattr
# -----------------
if hasattr(object, 'undefined'):
if hasattr(str, 'undefined'):
str.undefined
str.upper
#! 4 attribute-error
str.undefined2
#! 4 attribute-error
int.undefined
else:
str.upper
#! 4 attribute-error