#NEWLINE# def __setitem__( self , index , value ) : #NEWLINE# #INDENT# assert isinstance ( value , float ) , 'Must be a float' #NEWLINE# try : #NEWLINE# #INDENT# self . _c [ self ] = ( 1.0 * value ) #NEWLINE# #UNINDENT# except IndexError : #NEWLINE# #INDENT# raise IndexError ( 'Index must be 0, 1, 2, or 3' ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# raise ValueError ( 'Must be a number' )