#NEWLINE# def _range_check( self , **check_args ) : #NEWLINE# #INDENT# 'Range check row and/or column index\n\n        Expected argyments:\n            row = <row number>\n            column = <column number>\n        ' #NEWLINE# if ( 'row' in check_args ) : #NEWLINE# #INDENT# row = check_args [ 'row' ] #NEWLINE# if ( ( row < 0 ) or ( row >= self . _num_rows ) ) : #NEWLINE# #INDENT# raise ValueError ( ( 'Bad row (%d).  Expected row in range 0 to %d.' % ( row , ( self . _num_rows - 1 ) ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# if ( 'column' in check_args ) : #NEWLINE# #INDENT# column = check_args [ 'column' ] #NEWLINE# if ( ( column < 0 ) or ( column >= self . _num_columns ) ) : #NEWLINE# #INDENT# raise ValueError ( ( 'Bad column (%d).  Expected column in range 0 to %d.' % ( column , ( self . _num_columns - 1 ) ) ) )