how to add attribute to class python

40

setattr(objectClass, "newAttribute", "new attr")

Comments

Submit
0 Comments