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
in spam.py, how about something like this:
try:
eggs.someFunction()
except:
import eggs
--
http://mail.python.org/mailman/listinfo/python-list
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