469,271 Members | 1,009 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

Apache/mod_python & MySQLdb

AIUI, global variables are supposed to be preserved within each Apache

However, I'm importing and using MySQLdb within a class in a separate
module, which is in turn imported and used within a _function (ie. not
"published"). So, AFAICT, it's not supposed to be preseved.

But unless I specifically close() the database connection, it gets
stranded and I eventually run out of connections, even if I del the
connection and cursor objects.

What gives? What happened to GC?
Also, is there an easy way to run pychecker on mod_python scripts? It
fails since _apache doesn't exist outside of Apache....

Confused & tired of PHP.
Jul 18 '05 #1
0 965

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Rolfe | last post: by
2 posts views Thread by digidalmation | last post: by
1 post views Thread by Tama | last post: by
5 posts views Thread by m.banaouas | last post: by
1 post views Thread by NccWarp9 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.