[wsgi] Python interpreter initialization

Igor Sysoev is at rambler-co.ru
Mon Aug 20 14:29:19 MSD 2007

On Mon, Aug 20, 2007 at 12:15:26PM +0200, Manlio Perillo wrote:

> I need some help for the development of mod_wsgi.
> Before using the Python C API for embedding Python code, the main 
> interpreter must be initialized by calling
>   Py_Initialize();
> This function set a global context.

By the way, python is the most unsuitable language to embed in nginx - it
has the single interpreter. That means that you could not safely reconfigure
nginx. Even perl (unsuitable too) allows several interpreters.

Igor Sysoev

More information about the nginx mailing list