Can I write my apps in python and then run them from C? -
I have to write a client-server application. I want to write it in Python, because I'm aware of it, but I I would like to know that Pyro code can be run from C. I am planning two projects, one of which is a server code, and a client code is included.
What is the Python code eval and it is possible to run? Is there another way to do this?
The bottom line is that the Python code should be run in C, and it should behave properly as the dragon has gone under the interpreter. I am asking it now because I do not want to waste time writing python codes, just to find out later that I can not achieve it. As a sidenote, I'm just planning to use basic dragon modules (socket, selection, etc.).
EDIT: Maybe this edit is in the order I have not embedded Python in the first place, and I do not know what the behavior will be. The thing is, the selection of the server will be a loop, and so will run "forever" Do I have to do this?
EDIT2: That's why I need to do this. In school, a teacher asked us to do a very complicated client-server app in C. To deceive me, writing code in Python and going to embed it in C.
Here's a nice tutorial to fix it right here
Comments
Post a Comment