Boost logo

Boost-Build :

Subject: Re: [Boost-build] Extension style
From: Juraj Ivančić (juraj.ivancic_at_[hidden])
Date: 2010-07-28 03:56:26


On 26.7.2010 14:22, Vladimir Prus wrote:

> I guess I can try to put it in a different way:
>
> 1. Is there a way for a single C++ application to create several, fully
> independent, instances of Python interpreter?

Googling came up with this:

http://docs.python.org/c-api/init.html#Py_NewInterpreter

> 2. It is possible, within a single instance of Python interpreter, to
> load the same module twice, so and get two copies of global data of
> that module?

I think that this can be achieved with module aliases (untested):

import module as module1
import module as module2

HTH


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk