def parse_numtuple(s,intype,length=<NUM_LIT:2>,scale=<NUM_LIT:1>):
if intype == int:<EOL><INDENT>numrx = intrx_s;<EOL><DEDENT>elif intype == float:<EOL><INDENT>numrx = fltrx_s;<EOL><DEDENT>else:<EOL><INDENT>raise NotImplementedError("<STR_LIT>".format(<EOL>intype));<EOL><DEDENT>if parse_utuple(s, numrx, length=length) is None:<EOL><INDENT>raise ValueError("<STR_LIT>".format(s));<EOL><DEDENT>return [x*scale for x in evalt(s)]<EOL>
parse a string into a list of numbers of a type