def splitArgs(argstr):
 split = argstr.split(',')
 fn = split[0]
 params = split[1:]
 args = [makeNumeric(s) for s in params if ('=' not in s)]
 kwargs = {}
 for s in [p for p in params if ('=' in p)]:
  (key, val) = s.split('=', 1)
  kwargs[key] = makeNumeric(val)
 return (fn, args, kwargs)

def splitArgs ( argstr ) : split = argstr . split ( ',' ) fn = split [ 0 ] params = split [ 1 : ] args = [ makeNumeric ( s ) for s in params if ( '=' not in s ) ] kwargs = { } for s in [ p for p in params if ( '=' in p ) ] : ( key , val ) = s . split ( '=' , 1 ) kwargs [ key ] = makeNumeric ( val ) return ( fn , args , kwargs )
split argument string into usable python arguments argstr: argument string with format fn .