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.
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.
Debugging Python extended on C++