mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
13 lines
136 B
Python
13 lines
136 B
Python
|
|
a = 1
|
|
del a
|
|
|
|
class MyObject: pass
|
|
foo = MyObject()
|
|
foo.bar = 2
|
|
assert hasattr(foo, 'bar')
|
|
del foo.bar
|
|
|
|
assert not hasattr(foo, 'bar')
|
|
|