parameters: (self, count=1)
return_statement: return deleted
docstring: Delete specified number of characters before cursor and return the
          deleted text.
docstring_summary: Delete specified number of characters before cursor and return the
          deleted text.
docstring_tokens: Delete specified number of characters before cursor and return the deleted text .
function: def delete_before_cursor(self, count=1):
          """
          Delete specified number of characters before cursor and return the
          deleted text.
          """
          assert count >= 0
          deleted = ''
  
          if self.cursor_position > 0:
              deleted = self.text[self.cursor_position - count:self.cursor_position]
  
              new_text = self.text[:self.cursor_position - count] + self.text[self.cursor_position:]
              new_cursor_position = self.cursor_position - len(deleted)
  
              # Set new Document atomically.
              self.document = Document(new_text, new_cursor_position)
  
          return deleted
function_tokens: def delete_before_cursor ( self , count = 1 ) : assert count >= 0 deleted = '' if self . cursor_position > 0 : deleted = self . text [ self . cursor_position - count : self . cursor_position ] new_text = self . text [ : self . cursor_position - count ] + self . text [ self . cursor_position : ] new_cursor_position = self . cursor_position - len ( deleted ) # Set new Document atomically. self . document = Document ( new_text , new_cursor_position ) return deleted