python-shell-compilation-regexp-alist

python-shell-compilation-regexp-alist is a variable defined in `python.el'.
Its value is

(("^[ ]+File \"\\([^\"<]+\\)\", line \\([[:digit:]]+\\)" 1 2) (" in file \\(.+\\) on line \\([[:digit:]]+\\)" 1 2) ("^> \\([^\"(<]+\\)(\\([[:digit:]]+\\))[^(]+()" 1 2))


Documentation:
`compilation-error-regexp-alist' for inferior Python.

You can customize this variable.