def _get_name ( self , key ) : if key in self . display_names : return self . display_names [ key ] return key . capitalize ( )
how to print the name of a key in python
get display name for a key or mangle for display
def _get_name(self, key):
        """ get display name for a key, or mangle for display """
        if key in self.display_names:
            return self.display_names[key]

        return key.capitalize()