[issue35706] Make it easier to use a venv with an embedded Python interpreter

Steve Dower report at bugs.python.org
Mon Feb 4 12:29:41 EST 2019


Steve Dower <steve.dower at python.org> added the comment:

> The idea is that python, in the embedding application, should work as in the python executable.

I disagree that this is the idea. Python in the embedding application should work as in the embedding application, not the standalone one. The embedding application should be able to easily opt-in to "standalone-like configuration", which is also what I said above, but right now that doesn't exist (it's under development).

Now, I'd be very much in favour of being able to embed Python without having to load any encodings. That ought to get us to the point where you can call "site.main()" in your embedding app, which does most of the work of what you consider the "default" behavior. But right now you just have to provide enough search path to initialize before doing that.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35706>
_______________________________________


More information about the Python-bugs-list mailing list