Terry J. Reedy <tjre...@udel.edu> added the comment:
In #45297, Steven D'Aprano suggests deleting code immediately followed by traceback. (SyntaxErrors should not be there at all -- another issue.) But should NameError, for instance, be ignore, just because user printed something? Or block removed just because it comes before print statement? Without more feedback, I believe most would want all code actually run. If there is a Traceback, Add comment with error and message. UI is a tough issue. I don't want to add more File menu entries and hot keys. We can add to shell context menu as have already done. Maybe this: after getting the save name, branch on type: .py, code only; anything else, full log. Subsequent ^S saves use last save-as name to decide. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue11838> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com