Commit ee7b8f32 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tests/ Add test for obj.__dict__ .

parent 3c014a67
import sys
class Foo:
def __init__(self):
self.a = 1
self.b = "bar"
o = Foo()
if not hasattr(o, "__dict__"):
print(o.__dict__ == {'a': 1, 'b': 'bar'})
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment