link to python C++ ineritance extension example

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-02-27 00:00:02 +00:00
parent f69982fb63
commit 4646b96f53

View File

@@ -14959,6 +14959,8 @@ The regular Python code can then use the native C classes as if they were define
+
Finally, the Python returns values back to the C code that called the interpreter.
* link:userland/libs/python_embed/pure_cpp.cpp[]: C++ version of the above, the main goal of this example is to show how to interface with C++ classes.
+
See also: https://stackoverflow.com/questions/2200912/inheritance-in-python-c-extension/60436902#60436902
One notable user of Python embedding is the <<gem5>> simulator, see also: <<gem5-vs-qemu>>. gem5 embeds the Python interpreter in order to interpret scripts as seen from the CLI: