parameters: (self, rangestr, raw=True, output=False)
docstring: Get lines of history from a string of ranges, as used by magic
          commands %hist, %save, %macro, etc.
  
          Parameters
          ----------
          rangestr : str
            A string specifying ranges, e.g. "5 ~2/1-4". See
            :func:`magic_history` for full details.
          raw, output : bool
            As :meth:`get_range`
  
          Returns
          -------
          Tuples as :meth:`get_range`
docstring_summary: Get lines of history from a string of ranges, as used by magic
          commands %hist, %save, %macro, etc.
docstring_tokens: Get lines of history from a string of ranges as used by magic commands %hist %save %macro etc .
function: def get_range_by_str(self, rangestr, raw=True, output=False):
          """Get lines of history from a string of ranges, as used by magic
          commands %hist, %save, %macro, etc.
  
          Parameters
          ----------
          rangestr : str
            A string specifying ranges, e.g. "5 ~2/1-4". See
            :func:`magic_history` for full details.
          raw, output : bool
            As :meth:`get_range`
  
          Returns
          -------
          Tuples as :meth:`get_range`
          """
          for sess, s, e in extract_hist_ranges(rangestr):
              for line in self.get_range(sess, s, e, raw=raw, output=output):
                  yield line
function_tokens: def get_range_by_str ( self , rangestr , raw = True , output = False ) : for sess , s , e in extract_hist_ranges ( rangestr ) : for line in self . get_range ( sess , s , e , raw = raw , output = output ) : yield line