code: def __try_parse_number(self, string):
          
          try:
              return int(string)
          except ValueError:
              try:
                  return float(string)
              except ValueError:
                  return False
docs: Try to parse a string to a number, else return False.