Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
python
/
testData
/
completion
/
hasattrCompletion
/
hasattrIfPyramidAndOr.py
blob: c482c57f3e35e91db89ec5f4d1b43ce4b7eecb4a [
file
]
def
foo
(
x
):
if
hasattr
(
x
,
'foo'
):
if
hasattr
(
x
,
'bar'
)
or
hasattr
(
x
,
'baz'
):
if
hasattr
(
x
,
'qux'
)
and
(
hasattr
(
x
,
'quux'
)
or
hasattr
(
x
,
'quuz'
))
and
hasattr
(
x
,
'corge'
):
print
(
x
.<
caret
>)