Re: [fpc-pascal] Python interaction... how?

2018-02-18 Thread Michael Van Canneyt
On Sat, 17 Feb 2018, Darius Blaszyk wrote: Thanks for the tips and hints! I found this page also explaining well on how to embed python bi-directionally in FPC. https://docs.python.org/3.4/extending/embedding.html The P4D code was very helpful as well. I stripped all the object and component

Re: [fpc-pascal] Python interaction... how?

2018-02-17 Thread Darius Blaszyk
Thanks for the tips and hints! I found this page also explaining well on how to embed python bi-directionally in FPC. https://docs.python.org/3.4/extending/embedding.html The P4D code was very helpful as well. I stripped all the object and component code and now have a working FPC only python

Re: [fpc-pascal] Python interaction... how?

2018-02-16 Thread Michael Van Canneyt
On Fri, 16 Feb 2018, leledumbo via fpc-pascal wrote: Does anyone know of a minimal example or pseudo code or just an explanation? Python actually provides a Python.h that you can convert to a Pascal unit. But inside, it includes a bunch of other header files and conversion might be a

Re: [fpc-pascal] Python interaction... how?

2018-02-16 Thread leledumbo via fpc-pascal
> Does anyone know of a minimal example or pseudo code or just an explanation? Python actually provides a Python.h that you can convert to a Pascal unit. But inside, it includes a bunch of other header files and conversion might be a tedious task. If you made it, though, simply call:

[fpc-pascal] Python interaction... how?

2018-02-15 Thread Darius Blaszyk
Hi all, I just cannot wrap my head around this one. I would like to implement scripting support to a pure FPC application. The application implements some modifier on an internal data structure which will be exposed to python as a module. The data structure itself is managed by the calling