Import Python Class/methods into C++

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Keith Moore

    #1

    Import Python Class/methods into C++

    I'm a Python newbie,

    Can anyone show me an example of how to import a python class into a C++
    program?
    I am able to use PyImort_ImportM odule to import a module, and
    PyObject_GetAtt rString to import the function from the module.
    Now I converted that module to a class. I need to import methods from that
    class into my C++ program.

    Help!!!

    Keith

  • Stefan Behnel

    #2
    Re: Import Python Class/methods into C++

    Keith Moore schrieb:[color=blue]
    > Can anyone show me an example of how to import a python class into a C++
    > program?
    > I am able to use PyImort_ImportM odule to import a module, and
    > PyObject_GetAtt rString to import the function from the module.
    > Now I converted that module to a class. I need to import methods from that
    > class into my C++ program.[/color]

    Have you tried elmer?



    Stefan

    Comment

    Working...