Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython3
/
f4936ad1c4d0ae1948e428aeddc7d3096252dae4
/
.
/
Lib
/
test
/
good_getattr.py
blob: 7d27de6262ad741ea0029ca11b4d07995f08f370 [
file
] [
log
] [
blame
]
x
=
1
def
__dir__
():
return
[
'a'
,
'b'
,
'c'
]
def
__getattr__
(
name
):
if
name
==
"yolo"
:
raise
AttributeError
(
"Deprecated, use whatever instead"
)
return
f
"There is {name}"
y
=
2