$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
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