Inside a instance of rexec.RExec a code block introduces some local variables. They are not visible using the locals()/globals() dictionaries. However I need to check if a variable exists or not. If it exists I need to get the value of this variable. This there a way to do this ? Andreas