For a recursive function we can do:
def f(i):
if i<0: return
print i
f(i-1)
f(10)
However is there a way to do the following thin
Maybe you could try calling __class__
.
Right now I'm writing a code that calls a class method from within the same class.
It is working well so far.
I'm creating the class methods using something like:
@classmethod
def my_class_method(cls):
return None
And calling then by using:
x = __class__.my_class_method()