[mod_python] persistent, reliable globals

Michael S. Fischer michael at dynamine.net
Tue Mar 9 12:34:26 EST 2004

David Geller writes:

> 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?

Why don't you just use on-disk storage (e.g. anydbm) or a remote db for
this?  Why reinvent the wheel?


More information about the Mod_python mailing list