demo_ref_keyword_del.py:
class MyClass: name = "John" del MyClass print(MyClass)
➜ begtut>python demo_keyword_del.py
Traceback (most recent call last):
File "demo_ref_keyword_del.py", line 6, in <modulegt;
print(MyClass)
NameError: name 'MyClass' is not defined