You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
there is nothing that says your caller must have a local called self. that's pure convention (for methods not functions)David Jones– David Jones2022年09月02日 11:25:35 +00:00Commented Sep 2, 2022 at 11:25
-
1@DavidJones I changed my answer, however there are more complicated situations, e.g. for a static method. In the end one may need to analyze the whole source code to properly identify the calling object.AXO– AXO2022年09月07日 15:18:11 +00:00Commented Sep 7, 2022 at 15:18
lang-py