-> # --- mod_python/Session module -- -> class BaseSession(dict): -> def __init__(self, ..., lock=1, ...): -> self._lock = lock -> self._locked = 0 -> ... -> self.init_lock() -> if self._sid: # Session ID. -> self.lock() -> ... -> if self._new: -> # Unlock old ._sid, create session, unlock new ._sid. -> -> def __del__(self): -> self.unlock() Isn't __del__ not a guaranteed call? --titus