How to have application-wide global objects

Sanjay skpatel20 at hotmail.com
Thu Jul 13 10:18:51 EDT 2006


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.

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.

Badly need guidences.

Thanks a lot
Sanjay




More information about the Python-list mailing list