[mod_python] persistent, reliable globals

Gregory (Grisha) Trubetskoy grisha at modpython.org
Tue Mar 9 16:11:24 EST 2004


On Tue, 9 Mar 2004, David Geller wrote:

> Hi,
>
> Well, I had more or less come to this conclusion for the current
> mod_python version. Thankyou.
>
> Suggestion:
> Perhaps what would be handy: a special python function call, implemented
> via the API, to allow setting/getting of objects global to all the
> forked children for a particular named interpreter. These objects might
> be accessible through the req
> object, for example. I don't know enough to judge...
>
> Is this feaible? Useful (well, it would be to me...)? Easy/hard?

I've looked at this issue, and it's doable, but pretty darn difficult,
which is why it isn't part of mod_python, at least not yet. There are a
lot of hidden issues with making things global to multiple processes.

This page might be hlepful to get some idea of the level of complexity:

http://poshmodule.sourceforge.net/

Grisha


More information about the Mod_python mailing list