Last active
March 26, 2017 14:17
-
-
Save pcote/8541939b21c51c1a5995f8fe1985a897 to your computer and use it in GitHub Desktop.
This file contains 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)) | |
class OtherClass(object): | |
def __init__(self, msg): | |
self.msg = msg | |
other_ob = OtherClass("Hello from the other_ob instance") | |
MyClass.say_stuff(other_ob) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment