[mod_python] mod_python.Session returns Dictionary?

Manfred Stienstra manfred.stienstra at dwerg.net
Tue Jan 11 17:49:27 EST 2005

On Tue, 2005-01-11 at 16:59 -0500, Chris Jackson wrote:
> I read that mod_python.Session returns a subclass of dict.  Therefore, if I do:
> sess = Session(req)
> then I should be able to do: 
> sess['mykey'] = myvalue right?
> Furthermore if myvalue was a class with methods, then I could do:
> sess['mykey'].mymethod() right?

I think you mean an object, I don't see any reasons to put a class in
the session. But I believe you can do this as long as the class is

More information about the Mod_python mailing list