I have module with e.g. such func
function xy_pos(Self, Args: PPyObject): PPyObject; cdecl;
var
X, Y, N: Integer;
begin
with GetPythonEngine do
begin
if PyArg_ParseTuple(Args, 'ii:xy_pos', @X, @Y) <> 0 then
begin
N:= X + Y;
Result:= PyInt_FromLong(N);
end;
end;
end;
now i call it from my "console": I enter line into edit, and call
"PythonEngine.ExecString(Str)".
i call: "print(xy_pos('test'))"
expected: TypeError after this call.
seen: this call does NOT give error, but next same call gives TypeError.
I see TypeError each two calls, but now after each signle call.
Delphi7 IDE doesn't give exception TypeError.