Gibs in Python auch sowas wie named parameters function call bzw. wie könnten da so die workarounds aussehen?
beispiel workaround code in AHK:
Code: Alles auswählen
func2(3,4) ; works
func2({ y:2, x:5 }) ; works
MsgBox,, % g_msg ,, 3 ; with timeout
func2(x, y=""){
if(!y)
func1_by_reference( x*)
else
func1_by_reference({ y:y, x:x }*, A_ThisFunc)
}
func1_by_reference(args*){
g_msg .= args["x"]
g_msg .= args["y"] ","
}