parameters: (self)
return_statement: return long(self.item())
docstring: Convert to long.
docstring_summary: Convert to long.
docstring_tokens: Convert to long .
function: def __long__(self):
          """
          Convert to long.
          """
          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 long.')
          return long(self.item())
function_tokens: def __long__ ( 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 long.' ) return long ( self . item ( ) )