Author terry.reedy
Recipients cheryl.sabella, terry.reedy
Date 2018-12-29.05:02:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1546059751.61.0.784436952304.issue35610@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2018-12-29 05:02:35terry.reedysetrecipients: + terry.reedy, cheryl.sabella
2018-12-29 05:02:31terry.reedysetmessageid: <1546059751.61.0.784436952304.issue35610@roundup.psfhosted.org>
2018-12-29 05:02:31terry.reedylinkissue35610 messages
2018-12-29 05:02:31terry.reedycreate