#NEWLINE# def _complete_python_while_typing( self , document ) : #NEWLINE# #INDENT# char_before_cursor = document . char_before_cursor #NEWLINE# return ( char_before_cursor . text and ( char_before_cursor . isalnum ( ) or ( char_before_cursor in '_.' ) ) )