class_docstr: Makes datashape parse errors look like Python SyntaxError.
class_docstr_tok: ["Makes","datashape","parse","errors","look","like","Python","SyntaxError","."]
code: def __init__(self, lexpos, filename, text, msg=None):
      self.lexpos = lexpos
      self.filename = filename
      self.text = text
      self.msg = msg or "invalid syntax"
      self.lineno = text.count("\n", 0, lexpos) + 1
      # Get the extent of the line with the error
      linestart = text.rfind("\n", 0, lexpos)
      if linestart < 0:
          linestart = 0
      else:
          linestart = linestart + 1
      lineend = text.find("\n", lexpos)
      if lineend < 0:
          lineend = len(text)
      self.line = text[linestart:lineend]
      self.col_offset = lexpos - linestart
  
label_desc: Use image node_id 1 to create a new DataShapeSyntaxError object from inherited base classes: SyntaxError with example: obj = DataShapeSyntaxError(lexpos, filename, text, msg)