Ben Finney <ben+pyt...@benfinney.id.au> writes: > I'm familiar with that document. It doesn't help me understand what you > mean by “embed CPython in CPython”.
It seems straightforward enough to me. Lots of Python programs load C extensions. Denis is asking whether one of those C extensions could itself embed CPython through the embedding interface. My answer: I don't know, but I'm dubious about the prospect, based on how the embedding interface works. One of Armin Ronacher's old blog posts discusses the interface and some of its drawbacks: http://lucumr.pocoo.org/2014/8/16/the-python-i-would-like-to-see/#the-damn-interpreter It might be that MicroPython or PyPy is easier to embed in that way. -- https://mail.python.org/mailman/listinfo/python-list