On 8/13/16, Adrian Salceanu <[email protected]> wrote: > Thanks, but I don't know what the dict contains, it is user defined.
Your code above seems to suggest that you have some known keys and unknown keys. In which case it makes sense to pop the known keys manually and possibly handle them differently from the unknown ones. If none of the keys are known at compile (coding) time, what you need is basically a dict anyway and you should just use a dict instead of popping those into local variables.
