We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
Suppose I do the following:
class_<somevendor::SomeClass>("SomePyClass");
Is there a way at runtime in Python to retrieve the mapping between SomePyClass and somevendor::SomeClass ?
SomePyClass
somevendor::SomeClass
For context I am writing some code to parse Doxygen XML files and producing the .pyi file to get more auto-completion and docstrings
.pyi
The text was updated successfully, but these errors were encountered:
Currently I am wrapping my calls to class_ with some methods like:
class_
template <class T, class DT> class_<T> class__(const char* name, init_base<DT> const& init) { class_<T> c = class_<T>(name, init); register_type(typeid(T).name(), boost::python::extract<std::string>(c.attr("__name__"))); return c; }
(Where register_type stores the two strings in a map which is itself exposed) This works but is not really satisfying
register_type
Sorry, something went wrong.
No branches or pull requests
Hello,
Suppose I do the following:
class_<somevendor::SomeClass>("SomePyClass");
Is there a way at runtime in Python to retrieve the mapping between
SomePyClass
andsomevendor::SomeClass
?For context I am writing some code to parse Doxygen XML files and producing the
.pyi
file to get more auto-completion and docstringsThe text was updated successfully, but these errors were encountered: