mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
link to python C++ ineritance extension example
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user