Compile DLL from python code
Hi does anyo开发者_开发知识库ne know if you can compile Python code into a Windows DLL file? How would you go about doing this?
One way would be to create a C or C++ library that embeds the Python interpreter and runs your Python code.
Another option would be to translate you Python code to C++ with ShedSkin and make that a DLL, although I wouldn't expect a very clean API to come out of this.
精彩评论