☰
Debian Codegraph
@
3.14.7-4
3.14.7-3
3.14.7-1
3.14.6-1
3.14.5-1
/
/
Lib
/
test
/
test_module
/
good_getattr.py
☽
☼
Lib/test/test_module/good_getattr.py
code
plain
raw
1
x = 1
2
3
def __dir__():
4
return ['a', 'b', 'c']
5
6
def __getattr__(name):
7
if name == "yolo":
8
raise AttributeError("Deprecated, use whatever instead")
9
return f"There is {name}"
10
11
y = 2