Re: [C++-sig] Cplusplus-sig Digest, Vol 125, Issue 3

2020-05-13 Thread Lewis Evans
Hello, I suggest to avoid eval, in main() instead, after "import test" in main(): funcObj = global["test"].attr("test") // assuming your global["test"] is a successfully imported module resultObj = funcObj() then check resultObj: as well as extract-and-check, you can query repr/str, and is_none

Re: [C++-sig] Cplusplus-sig Digest, Vol 125, Issue 3

2020-05-13 Thread Carlos Duran via Cplusplus-sig
Hello again, I rewrite part of the code, but I didn't find my error. My new code is: cat ../src/DemiWu.cpp #include #include #include #include #include using namespace boost::python; using namespace DemiWu; #if PY_MAJOR_VERSION >= 3 #   define INIT_MODULE PyInit_DemiWu