Sorry for a bad explanation in advance - I have searched for a solution for my issue but have not found one. Basically, I am trying to define a class with an init that only gets called if no function within the class is called. For example:
class ThisClass():
def __init__(self):
print "hello"
def otherFunc(self):
print "yeet"
If I call ThisClass()
I would like it to print "hello", but if I call ThisClass().otherFunc()
I would like to print "yeet" but NOT print "hello". Anyone know how to help? Again, sorry for a bad explanation but I wasn't sure how to make it better.