cpp-pybind11-playground
cpp-pybind11-playground copied to clipboard
Creating a Scripting Egnine with pybind11. Step by step. https://github.com/pybind/pybind11
The description for `getName` member function is placed out of the `def` invocation: https://github.com/aoloe/cpp-pybind11-playground/blob/c2a3d9a7a83b5cc39eba74c8dcc613f05ac086d7/classes/src/main.cpp#L34 However the compiler ignores that description and the example works: ``` [ 50%] Building CXX object...
Dear developers, I am new in pybind11 and I encountered following simple problem: consider the example "eval-file" - if I change the script "set-the-y.py" as follows: ``` import sys def...
when running https://github.com/aoloe/cpp-pybind11-playground/blob/master/scripter-api/python/set-bar.py ```py print(Sample.a) document = Sample.document print(document.a) ``` i get this error message: ``` terminate called after throwing an instance of 'pybind11::error_already_set' what(): TypeError: Unable to convert function...
- the c++ application might or not have an open document. - if there is an open document, it's shared with the API. - the API can modify the document....
I am opening this issue to discuss how to use pointers in the Python scripter. The problem I see is that scribus uses raw pointers internally, so the wrapper has...