[mod_python] one time load of import

kamakhya kamakhya_gupta at satyam.com
Fri Dec 21 07:23:04 EST 2007

 I have a form.py which looks like following,
 import xyz

 def content(req,var1):
	return some_html_page

whenever from.py is called, the import xyz is reloaded. Since xyz is
time consuming. I don't want xyz to be  loaded again. Can any one help
me how to do it?


This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.

More information about the Mod_python mailing list