Created
December 18, 2014 08:28
-
-
Save salmanwahed/a0ce99606654189820a1 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 A(object): | |
def foo(self, x): | |
print "regular foo() method: %s %s" %(self, x) | |
@classmethod | |
def cls_foo(cls, x): | |
print "class method cls_foo(): %s %s" %(cls, x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment