Sanjay wrote: > Probably a newcomer question, but I could not find a solution. > > I am trying to have some singleton global objects like "database > connection" or "session" shared application wide.
Whenever possible, dont. If you really have no other way out, create the 'singleton' in it's module (at the module's to level), then import the module. > Trying hard, I am not even being able to figure out how to create an > object in one module and refer the same in another one. "import" > created a new object, as I tried. I'd like to know what you actually tried. -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in '[EMAIL PROTECTED]'.split('@')])" -- http://mail.python.org/mailman/listinfo/python-list