Hi all-
I have a function call that uses keyword arguments:
lib_routine( status=computed _value, hw_id=value[1], sw_id=value[2], \
something=value[3], something_else= value[4]...... )
There can be as many as 10 different keywords with the =value[n] construct. There can also be as few as 2 keywords passed to the function (status and one of the =value[n] constructs). Of course, anything between the 2 and 10 values are valid. Parsing a string of user-supplied text fills in the "value" list.
How do I construct an argument list for the function call that only contains keywords that contain data (i.e., if value[3] == "", I do not want to have the something=value[3] in the argument list).
Any hints/pointers would be greatly appreciated.
Thanks,
Dave
I have a function call that uses keyword arguments:
lib_routine( status=computed _value, hw_id=value[1], sw_id=value[2], \
something=value[3], something_else= value[4]...... )
There can be as many as 10 different keywords with the =value[n] construct. There can also be as few as 2 keywords passed to the function (status and one of the =value[n] constructs). Of course, anything between the 2 and 10 values are valid. Parsing a string of user-supplied text fills in the "value" list.
How do I construct an argument list for the function call that only contains keywords that contain data (i.e., if value[3] == "", I do not want to have the something=value[3] in the argument list).
Any hints/pointers would be greatly appreciated.
Thanks,
Dave
Comment