a = None
a.s = 2
throws an AttributeError. Is there a possibility to create an object a with the field s with value 2 without creating an own class for that? Would be super cool if Python would allow that hack! 8)
a = None
a.s = 2
throws an AttributeError. Is there a possibility to create an object a with the field s with value 2 without creating an own class for that? Would be super cool if Python would allow that hack! 8)