Sign in
chromium
/
external
/
github.com
/
python
/
cpython
/
ba6eba5a85a52f7978e0dbf260e4e52d697af01a
/
.
/
Lib
/
test
/
good_getattr.py
blob: 7d27de6262ad741ea0029ca11b4d07995f08f370 [
file
]
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