2 ms·
A big advantage of embedding the Python interpreter is that it cannot be replaced by a malicious program pretending to be Python. It’s going to be internal to y
by istotex 10y ago
A big advantage of embedding the Python interpreter is that it cannot be replaced by a malicious program pretending to be Python. It’s going to be internal to your binary, so it will be difficult for someone to intercept the scripts you are executing, or modify the functionality of your application.
There are only a handful of cases where it is worthwhile to embed the Python interpreter. For most cases, running Python in a separate process is probably the best approach.