reefactor/cppy3

would you add more examples

AllenDun opened this issue · 2 comments

great work! There are plenty of awsome functions in the repo. It would be better to add more useful examples to show how to use these built-in functions to embed python in c/c++ in real application, such as how to import python module, access module method, access python class, use numpy to do math, etc. Thanks!

also found a bug, in the cppy3.hpp, the declared function is "void appendToSysPath(const std::liststd::wstring& paths)", but in the cppy3.cpp, the defined is ""void appendToSysPath(const std::vectorstd::wstring& paths)

Thanks, appendToSysPath() is fixed in 7b54404

Example contributed in #2

More examples are welcome