Message332700
Attribute .context_use_ps1 is False in EditorWindow and Outwin, True in PyShell. It is use to switch code paths in multiple classes. It is equal to isinstance(self/editwin, PyShell) (which requires an import). It has the same truth value as attribute .prompt_last_line, which is '' except in PyShell. This more informative attribute was added in #31858 to consolidate all PS1 handling in PyShell.
A PR for #34055 proposed to remove the setting of .context_use_ps1 and the uses with .prompt_last_line. I will change the title after I submit this. I am not yet sure if this is the change I want to make. |
|
Date |
User |
Action |
Args |
2018-12-29 05:02:35 | terry.reedy | set | recipients:
+ terry.reedy, cheryl.sabella |
2018-12-29 05:02:31 | terry.reedy | set | messageid: <1546059751.61.0.784436952304.issue35610@roundup.psfhosted.org> |
2018-12-29 05:02:31 | terry.reedy | link | issue35610 messages |
2018-12-29 05:02:31 | terry.reedy | create | |
|