@property
    def _invalidated(self):
        """
        Boolean property indicating whether the session is in the state where
        it has been invalidated but a new session has not been created in its
        place.
        """
        return self.__dict__ not in '_session_state'
dataset/ETHPy150Open ericrasmussen/pyramid_redis_sessions/pyramid_redis_sessions/session.py/RedisSession._invalidated/swapped operands of `not in`