#NEWLINE# def unpack_vector_args( args , name ) : #NEWLINE# #INDENT# ( args , prop_keys , prop_vals ) = unpack_properties ( args , name ) #NEWLINE# if ( len ( args ) != 3 ) : #NEWLINE# #INDENT# raise SchemeException ( ( name + ': not given 3 required arguments' ) ) #NEWLINE# #UNINDENT# ( v , refh , seth ) = args #NEWLINE# if ( not isinstance ( v , values . W_MVector ) ) : #NEWLINE# #INDENT# raise SchemeException ( ( name + ': first arg not a vector' ) ) #NEWLINE# #UNINDENT# if ( ( not refh . iscallable ( ) ) or ( not seth . iscallable ( ) ) ) : #NEWLINE# #INDENT# raise SchemeException ( ( name + ': provided handler is not callable' ) ) #NEWLINE# #UNINDENT# return ( v , refh , seth , prop_keys , prop_vals )