statement level resumable exception
Emile van Sebille
emile at fenx.com
Thu Jan 20 15:55:39 EST 2011
On 1/20/2011 11:49 AM ilejn said...
> Chris,
>
> this is a long story why arguments may be not known.
> Briefly these arguments come (or may come) from XML and may be not
> specified.
>
> A function call which does not have all arguments defined must be
> skipped as gracefully as possible.
> What I am asking about is how to achieve this goal.
I might try using sets:
required = set(('a','b','c'))
if not (required - set(locals())): f(a,b,c)
HTH,
Emile
More information about the Python-list
mailing list