code: def nn_symbols():
      "query the names and values of nanomsg symbols"
      value = ctypes.c_int()
      name_value_pairs = []
      i = 0
      while True:
          name = _nn_symbol(i, ctypes.byref(value))
          if name is None:
              break
          i += 1
          name_value_pairs.append((name.decode('ascii'), value.value))
      return name_value_pairf nn_symbols():
      "query the names and values of nanomsg symbols"
      value = ctypes.c_int()
      name_value_pairs = []
      i = 0
      while True:
          name = _nn_symbol(i, ctypes.byref(value))
          if name is None:
              break
          i += 1
          name_value_pairs.append((name.decode('ascii'), value.value))
      return name_value_pairs
docs: query the names and values of nanomsg symbols