Comment by zwieback

8 years ago

Python is great for prototyping or even real apps if performance isn't so critical. However, more than once I've found myself in the situation where I wrote a bunch of Python code and then end up starting that code up from another app, just like the thread discusses and I immediately feel like this is an anti-pattern.

What's even more annoying is that my Python code usually calls a whole lot of C libraries (OpenCV, numpy, etc.) So it's like this: app->OS process->python interpreter->my python code->C libraries. That just really feels wrong so I'd like two things:

1) better/easier path to embed python scripts into my app e.g. resident interpreter

2) some way of passing scripts to python without restarting a new process, this may exist and I'm unaware