Search code examples
pythonswigpublic-method

Getting all public variables and methods in SWIG


If my C++ class has been wrapped by SWIG and exposed to the python interpreter. Is there a way to retrieve a collection of all public variables and methods in python? Thanks!


Solution

  • This is not SWIG-related, so it might not solve your specific problem, but you might want to look at Python's dir and __dir__ functions. There's a related question here.