Terry J. Reedy added the comment:
#31858 (second link) replaced one (?) use of "if use_context_ps1" ('in Shell')
with "if self.last_prompt_line != ''" ("prompt before code on same line").
This can only happen in Shell, and only if the prompt ends with something other
than '\n'.
I cannot rem
New submission from Cheryl Sabella :
In the EditorWindow in editor.py, there is an attribute called
`self.context_use_ps1` that is only set to False.
Changed to an instance variable in:
https://github.com/python/cpython/commit/6af44986029c84c4c5df62a64c60a6ed978a3693
Removed from pyshell in: