Question

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!

Was it helpful?

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top