Re: [python-win32] Several, totally isolated Python interpreters in the same process

2011-12-20 Thread Tim Golden

On 19/12/2011 15:26, Thomas Heller wrote:

I made an experiment that I wanted to share because it is imo kind of cool:

I managed to embed a second Python interpreter in a Python process, with
help of WinSxS (WinSxS is a Microsoft technology that allows to isolate
plugins from other plugins, or from the calling process).

The second interpreter is totally isolated from the calling process.

The idea is to use this technology to decouple COM extensions
implemented in Python from the caller and from other COM extensions.


Looks really interesting. I haven't a clue how I might
use it, but I'd love to find a reason to ...

TJG
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32


[python-win32] Several, totally isolated Python interpreters in the same process

2011-12-19 Thread Thomas Heller

I made an experiment that I wanted to share because it is imo kind of cool:

I managed to embed a second Python interpreter in a Python process, with
help of WinSxS (WinSxS is a Microsoft technology that allows to isolate
plugins from other plugins, or from the calling process).

The second interpreter is totally isolated from the calling process.

The idea is to use this technology to decouple COM extensions 
implemented in Python from the caller and from other COM extensions.

But there may be other uses as well...

The code is here:

http://code.google.com/p/ctypes-stuff/source/browse/trunk/winsxs


Information I found useful about WinSxS and assemblies:

http://msdn.microsoft.com/en-us/library/dd408052%28v=VS.85%29.aspx

http://omnicognate.wordpress.com/2009/10/05/winsxs/


Thomas

___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32