parameters: (self)
return_statement: return global_namespace
docstring: Execute the code, and return a dict of globals it defines.
docstring_summary: Execute the code, and return a dict of globals it defines.
docstring_tokens: Execute the code and return a dict of globals it defines .
function: def get_globals(self):
          """Execute the code, and return a dict of globals it defines."""
          # A check that the caller really finished all the blocks they started.
          assert self.indent_level == 0
          # Get the Python source as a single string.
          python_source = str(self)
          # Execute the source, defining globals, and return them.
          global_namespace = {}
          exec(python_source, global_namespace)
          return global_namespace
function_tokens: def get_globals ( self ) : # A check that the caller really finished all the blocks they started. assert self . indent_level == 0 # Get the Python source as a single string. python_source = str ( self ) # Execute the source, defining globals, and return them. global_namespace = { } exec ( python_source , global_namespace ) return global_namespace