I come from the Java programming language and I know that you can have more than one constructor there.
My question now is: is that also possible in Python?
My Problem:
I have a class, where I have my help functions for my commands (implemented with click
). These commands are not in the history class. Now my commands sometimes only have an input_dir
and an output_file
without a temp_file
. Or just an input_dir
and output_file
.
How can I still use the same constructor with 3 or sometimes 2 input parameters?