3 ms·
Oh, I should also mention that I found a way to embed Python interpreters within themselves. I have a couple of different ways to do it. Here's one: https://gi
by jamesdutc 11y ago
Oh, I should also mention that I found a way to embed Python interpreters within themselves. I have a couple of different ways to do it.
Here's one:
https://gist.github.com/dutc/eba9b2f7980f400f6287 https://gist.github.com/dutc/eba9b2f7980f400f6287
Here's another:
https://gist.github.com/dutc/2866d969d5e9209d501a https://gist.github.com/dutc/2866d969d5e9209d501a
I've given, like, a million conference talks about this.
Better than creating some horrible Python 2.8 hybrid would be funding (or convincing me to volunteer to do) the work of completing this bridge. This involves writing 2/3 and 3/2 PyObject shims and figuring out some GIL and GC issues.
Then, within a given host interpreter, you'd be able to execute modules within a guest interpreter of whatever Python version you want.
With the shims and the bridge work, you'd be able to interact with these objects seamlessly from host-to-guest and guest-to-host.