Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
python
/
testData
/
completion
/
hasattrCompletion
/
hasattrAndWithNot.py
blob: 9e876d4805e9d47695646d66e909a2ef9f53907f [
file
]
def
foo
(
x
):
if
hasattr
(
x
,
'foo'
)
and
not
hasattr
(
x
,
'bar'
)
and
not
not
hasattr
(
x
,
'baz'
):
print
(
x
.<
caret
>)