parameters: (self)
return_statement: return str(res)
docstring: Calculate the str representation, using masked for fill if
             it is enabled. Otherwise fill with fill value.
docstring_summary: Calculate the str representation, using masked for fill if
             it is enabled. Otherwise fill with fill value.
docstring_tokens: Calculate the str representation using masked for fill if it is enabled . Otherwise fill with fill value .
function: def __str__(self):
          """Calculate the str representation, using masked for fill if
             it is enabled. Otherwise fill with fill value.
          """
          if masked_print_option.enabled():
              f = masked_print_option
              # XXX: Without the following special case masked
              # XXX: would print as "[--]", not "--". Can we avoid
              # XXX: checks for masked by choosing a different value
              # XXX: for the masked singleton? 2005-01-05 -- sasha
              if self is masked:
                  return str(f)
              m = self._mask
              if m is not nomask and m.shape == () and m:
                  return str(f)
              # convert to object array to make filled work
              self = self.astype(object)
          else:
              f = self.fill_value()
          res = self.filled(f)
          return str(res)
function_tokens: def __str__ ( self ) : if masked_print_option . enabled ( ) : f = masked_print_option # XXX: Without the following special case masked # XXX: would print as "[--]", not "--". Can we avoid # XXX: checks for masked by choosing a different value # XXX: for the masked singleton? 2005-01-05 -- sasha if self is masked : return str ( f ) m = self . _mask if m is not nomask and m . shape == ( ) and m : return str ( f ) # convert to object array to make filled work self = self . astype ( object ) else : f = self . fill_value ( ) res = self . filled ( f ) return str ( res )