Embedding Python in C

Chris Angelico rosuav at gmail.com
Fri Jul 19 10:17:18 EDT 2019


On Sat, Jul 20, 2019 at 12:16 AM Jesse Ibarra
<jesse.ibarra.1996 at gmail.com> wrote:
>
> On Thursday, July 18, 2019 at 2:01:39 PM UTC-6, Chris Angelico wrote:
> > On Fri, Jul 19, 2019 at 5:51 AM Christian Gollwitzer <auriocus at gmx.de> wrote:
> > > Once you can do this, you can proceed to call a Python function, which
> > > in C means that you invoke the function PyObject_CallObject(). A basic
> > > example is shown here:
> > >
> > > https://docs.python.org/2/extending/embedding.html#pure-embedding
> > >
> >
> > Or, better:
> >
> > https://docs.python.org/3/extending/embedding.html#pure-embedding
> >
> > ChrisA
>
> I need to call a .so file, but I don't know I way to do that with PyObject. I can only seem to bring in .py files

I have vastly insufficient context to be able to even attempt to answer this.

ChrisA



More information about the Python-list mailing list