python - referencing static methods from class variable -
I know that there is such a case, but in some way I have:
Class Foo #static method @staticmethod def test (): pass # class variable c = {'name': & lt; I want to refer to the test method here. & Gt;}
What is the way?
For the record:
I believe that it should be considered as the worst behavior of Ajithan. Using static methods is not really ...
class Foo: # static method @staticmethod def test (): pass # class variable c = {'name': test}
Comments
Post a Comment