parameters: (self)
return_statement: return int(self.item())
docstring: Convert to int.
docstring_summary: Convert to int.
docstring_tokens: Convert to int .
function: def __int__(self):
          """
          Convert to int.
  
          """
          if self.size > 1:
              raise TypeError("Only length-1 arrays can be converted "
                              "to Python scalars")
          elif self._mask:
              raise MaskError('Cannot convert masked element to a Python int.')
          return int(self.item())
function_tokens: def __int__ ( self ) : if self . size > 1 : raise TypeError ( "Only length-1 arrays can be converted " "to Python scalars" ) elif self . _mask : raise MaskError ( 'Cannot convert masked element to a Python int.' ) return int ( self . item ( ) )