0

I am learning how to run Python through C++ and I'm having a hard time getting a handle on things. Is there a way to output the code that is generated by the various PyObjects? I'm not very experienced with embedding, so the documentation went a bit over my head.

1
  • 1
    I'm not sure what you're asking about, but you might find boost::python useful in c++, rather than interacting with the python c-API directly. Commented May 4, 2014 at 23:43

1 Answer 1

2

No, the PyObjects don't generate code -- it is just a c struct that holds the information of that particular Python object. You can inspect them in your C++ debugger.

I'm experienced with py embedding. The docs seem clear. Don't really get what your problem is.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, I just needed clarification about what the PyObjects did. I hope my question didn't seem trite.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.