python-shell-prompt-output-regexp
python-shell-prompt-output-regexp is a variable defined in `python.el
'.Its value is
""
Documentation:
Regular expression matching output prompt of Python shell.
It should not contain a caret (^) at the beginning.
You can customize this variable.