ich möchte eine Objekt configuration initialiseren und möchte zwei verschiedene Konstruktoren:
1.
Code: Alles auswählen
def configuration():
window_size_detection=100000
offset_detection=20000
window_size_spike=45001
...
return configund 2.
Code: Alles auswählen
def configuration(wsd, od, wss):
window_size_detection=wsd
offset_detection=od
window_size_spike=wss
...
return configNun meine Frage:
Worin liegt der Fehler? Gibt es alternative Kontruktoren in Python?
(ps.: komme aus der java-welt)
