I'm trying to implement a simple class with static vars and static methods:
class X(object):
@staticmethod
def do_something(par):
# do something with parameter par
#...
return something
static_var = X.do_something(5) #<-- that's how I call the function
But I have the error NameError: name 'X' is not defined
.
How to do call this static function?