In python if we define a class called Start and initialize it with an argument as seen below...
class Start:
def __init__(self, a):
self.a = a
Once defined, and after importing Start into another python file is there any way to make a function or attribute inside the class so I can construct the class directly like this?
# Start.make or Start.make()
# Sample usage below
s = Start.make #initializes Start with the argument of 1
What I'm trying to do is to have Start.make accomplish the same objective as Start(1) so I can potentially create other method of constructing commonly used values without having to manually place the arguments inside the Start() constructor. Is this in anyway possible in Python? If not, are there any alternatives solutions I can follow to achieve a similar result?