Staging
v0.8.1
Revision 663836e1179ea79eac12e55670af7e89a531a060 authored by Miss Islington (bot) on 10 June 2020, 01:26:16 UTC, committed by GitHub on 10 June 2020, 01:26:16 UTC


Follow-up to GH-8014
(cherry picked from commit 7aed0524d4129766a6032326949ef7f91f6f6dfc)


Co-authored-by: Éric Araujo <merwok@netwok.org>

Automerge-Triggered-By: @merwok
1 parent 0f5a28f
Raw File
good_getattr.py
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
back to top