You will get a list of local variables in the binding by doing eval("local_variables", the_binding) .
I'm not sure what you meant by "Or should I always use this in conjunction with local_variables ?", But there is no way to get a list without calling local_variables some way.
source share