Created
July 1, 2021 06:10
-
-
Save Abhayparashar31/4c55b0f55cb2120a19434b5a7c60141c 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 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