Getting all public variables and methods in SWIG
-
30-03-2021 - |
Domanda
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!
Soluzione
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.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow