hasattr checks working now, #408
This commit is contained in:
1 parent
bba120d906
commit
63868feb5d
3 files changed
+41
-10
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user