Re: Cleaning up after C module

2005-04-11 Thread Fredrik Lundh
<[EMAIL PROTECTED]> wrote: > I have a Python module written in C that spawns and kills processes > using OS-specific mechanisms. I want to kill all spawned processes when > the interpreter exits. I tried to wrap every spawned process in a > Python object like this: > >import cmodule >class

Cleaning up after C module

2005-04-10 Thread j1k1cki
Hello, I have a Python module written in C that spawns and kills processes using OS-specific mechanisms. I want to kill all spawned processes when the interpreter exits. I tried to wrap every spawned process in a Python object like this: import cmodule class Process: __init__(self