From 4646b96f53eab82c30509aac6e7e553fff86ca33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Thu, 27 Feb 2020 00:00:02 +0000 Subject: [PATCH] link to python C++ ineritance extension example --- README.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.adoc b/README.adoc index b4d20db..f747d5e 100644 --- a/README.adoc +++ b/README.adoc @@ -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 <> simulator, see also: <>. gem5 embeds the Python interpreter in order to interpret scripts as seen from the CLI: