Re: pulling multiple instances of a module into memory

2005-06-27 Thread infidel
Do you have control over the eggs.so module? Seems to me the best answer is to make the start method return a connection object conn1 = eggs.start('Connection1') conn2 = eggs.start('Connection2') -- http://mail.python.org/mailman/listinfo/python-list

Re: pulling multiple instances of a module into memory

2005-06-27 Thread Grooooops
in spam.py, how about something like this: try: eggs.someFunction() except: import eggs -- http://mail.python.org/mailman/listinfo/python-list

pulling multiple instances of a module into memory

2005-06-27 Thread Gabriel Jiva
I have a Python app, spam.py, that uses a C shared library, eggs.so. This shared library is an interface that makes connections to another system (Ham), and among other things uses callback functions. Therefore, if I want to make multiple connections to Ham, I need eggs.so to be instantiated in mem