Created
January 4, 2013 13:30
-
-
Save hltbra/4452599 to your computer and use it in GitHub Desktop.
comment part 2 on http://www.igorsobreira.com/2012/12/31/unnecessary-classes.html
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 Greeting(object): | |
| def __init__(self, msg): | |
| self.msg = msg | |
| def greet(self): | |
| return 'Hello %s!' % msg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment