title: How to list all function names of a Python module in C++?
body: <p>I have a C++ program, I want to import a Python module and list all function names in this module. How can I do it?</p>
  
  <p>I used the following code to get the dict from a module:</p>
  
  <pre><code>PyDictObject* pDict = (PyDictObject*)PyModule_GetDict(pModule);
  </code></pre>
  
  <p>But how to list the functions names?</p>