Python for Delphi (P4D) is a set of free components that wrap up the Python dll into Delphi and Lazarus (FPC). They let you easily execute Python scripts, create new Python modules and new Python types. You can create Python extensions as dlls and much more. P4D provides different levels of functionality:. Low-level access to the python API. High-level bi-directional interaction with Python.
Access to Python objects using Delphi custom variants (VarPyth.pas). Wrapping of Delphi objects for use in python scripts using RTTI (WrapDelphi.pas)P4D makes it very easy to use python as a scripting language for Delphi applications.
Jul 21, 2010 i can solve the one problem (always return the same IUnknown) by using the implements keyword, and delegate the new interface to an adapter class created in the property getter. But yes, that still causes the other problem of new objects each time. I would have to cache n-objects, one for each of the n-supported interfaces.sigh Updated the original question with the actual problem i'm trying. A XOR 11); Delphi (input): B:= (Inport (BA+2) XOR 11) AND 15; 9.2 Bi-directional printer interfaces The hitherto explained properties of the printer interface.
It comes with an extensive range of demos and tutorials.Delphinus-Support.