py4d

 

VarPyth

Page history last edited by Oliver Bock 3 yrs ago

VarPyth wraps Python types as Delphi custom variants. VarPyth requires at least Delphi v6.

 

You can use these Python Variants in expressions just as you would any other Variant. e.g.

 

var

a: Integer;

v: Variant;

begin

v := VarPythonEval('2 ** 3');

a := v;

 

The functions provided by this unit are largely self-explanatory. See the interface section of VarPyth.pas.

Comments (0)

You don't have permission to comment on this page.