diff -r 6f3e20690172 -r ab0afe798428 exemples/python/python@py_ext/pyfile.xml --- a/exemples/python/python@py_ext/pyfile.xml Mon May 22 14:38:25 2023 +0200 +++ b/exemples/python/python@py_ext/pyfile.xml Mon May 22 14:40:49 2023 +0200 @@ -15,12 +15,12 @@ i = ctypes.c_int() if(Python_to_C_Call(arg, i)): res = i.value - print "toC:", arg, "from C:", res, "FBID:", FBID + print("toC:", arg, "from C:", res, "FBID:", FBID) else: - print "Failed Python_to_C_Call failed" + print("Failed Python_to_C_Call failed") res = None - print "Python read PLC global :",PLCGlobals.Test_Python_Var - print "Python read PLC global Grumpf :",PLCGlobals.Grumpf + print("Python read PLC global :",PLCGlobals.Test_Python_Var) + print("Python read PLC global Grumpf :",PLCGlobals.Grumpf) PLCGlobals.Second_Python_Var = 789 sys.stdout.flush() return res @@ -47,23 +47,23 @@ global x, y x = 2 y = 5 -print "py_runtime init:", x, ",", y +print("py_runtime init:", x, ",", y) ]]>