[mod_python] Use of global for application data?

fumanchu fumanchu at aminus.net
Wed Sep 24 11:31:27 EST 2003

> I've seen examples of how to create persistent database connections
> mod_python, but not enough examples of other application data.
> In my case the application data are large objects including page
> Exists a better way than binding values to names in the globals

"THE globals namespace" sounds misleading to me, unless you're talking
about the __main__ module. Each module has its own global namespace.

> Maybe I just have a hang-up about globals that I need to overcome.

That would depend on what you mean by "a better way". What limitations
of module.attributes are you seeing? I'd be interested to hear more
about your design, including your goals for the page templates--are you
trying to cache them in RAM throughout the life of the application?

Robert Brewer
fumanchu at aminus.net

More information about the Mod_python mailing list