def delete(self, *names):
        '''
        Deletes the object with "name" from the session, if exists.
        '''

        def change(session):
            keys = session.keys()
            names_in_common = [name for name in names if name in keys]
            for name in names_in_common:
                del session[name]
        self.__change_session(change)
def delete ( self , * names ) : def change ( session ) : keys = session . keys ( ) names_in_common = [ name for name in names if name in keys ] for name in names_in_common : del session [ name ] self . __change_session ( change )
Deletes the object with "name" from the session, if exists.