Last active
March 26, 2017 14:12
-
-
Save pcote/6d68aeb317e42df2be25a0c6e74f6f3c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyClass(object): | |
def say_stuff(self): | |
print("Say stuff message is: {}\n\n".format(self.msg)) | |
ob = MyClass() | |
setattr(ob, "msg", "Here is a message from a setattr") | |
ob.say_stuff() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment