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 bind

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 tedious

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: Py_Initializ

Re: [fpc-pascal] Python

2009-02-15 Thread Krishna
On Mon, Feb 16, 2009 at 6:25 AM, Xealot wrote: > Hello everyone, > > I appologize if this is not the correct mailing list for this kind of > question. > > I want to use Python from my application, i found a couple of ways to do > this. either use P4D in Windows (which would not compile on my 64 bi