code: def _get_codes(self):
          
          v = self._codes.view()
          v.flags.writeable = False
          return v
docs: Get the codes.
  
          Returns
          -------
          codes : integer array view
              A non writable view of the `codes` array.