SyntaxFix
Write A Post
Hire A Developer
Questions
A picture's worth a thousand words:
>>> class c: pass o = c() >>> setattr(o, "foo", "bar") >>> o.foo 'bar' >>> getattr(o, "foo") 'bar'