I know it’s wired to have such a case but somehow I have it:
class foo
#static method
@staticmethod
def test():
pass
# class variable
c = {'name' : <i want to reference test method here.>}
What’s the way to it?
Just for the record:
I believe this should be considered as python worst practices. Using static methods is not really pythoish way if ever…
1 Answer