Skip to content

Instantly share code, notes, and snippets.

@Abhayparashar31
Created July 1, 2021 06:10
Show Gist options
  • Save Abhayparashar31/4c55b0f55cb2120a19434b5a7c60141c to your computer and use it in GitHub Desktop.
Save Abhayparashar31/4c55b0f55cb2120a19434b5a7c60141c to your computer and use it in GitHub Desktop.
class A(object):
def foo(self, x):
print(f"executing foo({self}, {x})")
@classmethod
def class_foo(cls, x):
print(f"executing class_foo({cls}, {x})")
@staticmethod
def static_foo(x):
print(f"executing static_foo({x})")
a = A()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment