0
How to build a python interpreter in python
Like pypi
2 Answers
+ 1
Ignoring that this feels wrong, and supposing you don't want to cheat and just 'exec' (fork), you could extend Python with the C++ interface.
https://docs.python.org/2/extending/extending.html
Basically...it's direct access to the runtime. It's probably worth noting that Python also allows one to override reserved words.
0
I think python can not do it.