Nick Coghlan <ncogh...@gmail.com> added the comment:

I'm not sure what the right solution is at the design level, but I did recently 
run into a quirk related to this in the embedding tests: on \*nix systems, 
PySys_SetProgramName affects sys.executable, while Windows ignores it.

But certainly the intention is that a non-None sys.executable should be usable 
the way multiprocessing and the test suite use it: as a way to run Python in a 
subprocess. If an embedding environment wants to support that, it can set it to 
something suitable, and if it doesn't, it can set it to None.

(I do sometimes wonder if subprocess should have some sys.executable-specific 
helpers though - rerunning Python with the same settings as the current Python 
requires quite a bit more than just calling sys.executable with no particular 
options)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33180>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to