title: store a composit function name in a dictionary without being a string
body: <p>I have a python3.8 dictionary of menu commands, I am attempting to add the functions to another dictionary, using the menu name in the function. so 'save' becomes 'self.menu_save' unfortunately when I save it with concatenation like 'self.menu_' + menuname  I get a string in my dictionary that is not executable,  I could manually type the names and it would work however I am building a class and the menu names are entered from the subclass
  I would like to be able to do this:</p>
  <pre><code>self.pri_menu = {'file': ['save', 'new', 'open', 'delete', 'print'],
                           'edit': ['select', &quot;update&quot;, 'delete', 'insert']}
  </code></pre>
  <p>and then iterate: and end up with
  {'save': self.menu_save, 'new':self.menu_new,...}
  my current attempts leave me with
  {save:'self.menu_save','new':'self.menu_new',...}</p>
  <pre><code>     self.menu_commands[y] = 'self.menu_' + y
       self.menu_items[row].add_command(label=y, command=self.menu_commands[y])
  </code></pre>
  <p>this does not work.  Y is my Iterator so 'save' etc..
  print(self.menu_commands) =</p>
  <p>{'save': 'self.menu_save', 'new': 'self.menu_new', 'open': 'self.menu_open', 'delete': 'self.menu_delete', 'print': 'self.menu_print', 'select': 'self.menu_select', 'update': 'self.menu_update', 'insert': 'self.menu_insert'}</p>
  <p>I am doing this within a class so the references / pointers have to be in the class I am thinking there may be an interpreter que or something to let the system know this is a function and look it up, and not just string. All help is appreciated.</p>