(self)
Delete the string provided if it is at the top of string space.
Delete the string provided if it is at the top of string space.
Delete the string provided if it is at the top of string space .
def _delete_last(self):
        """Delete the string provided if it is at the top of string space."""
        last_address = self.current + 1
        try:
            length = len(self._strings[last_address])
            self.current += length
            del self._strings[last_address]
        except KeyError: # pragma: no cover
            # maybe happens if we're called before an out-of-memory exception is handled
            # and the string wasn't allocated
            pass
def _delete_last ( self ) : last_address = self . current + 1 try : length = len ( self . _strings [ last_address ] ) self . current += length del self . _strings [ last_address ] except KeyError : # pragma: no cover # maybe happens if we're called before an out-of-memory exception is handled # and the string wasn't allocated pass