[issue37824] IDLE: Handle Shell input warnings properly.

2020-05-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: The new items can be new issues, with 6 maybe the highest priority. Currently :1: DeprecationWarning: invalid escape sequence \e becomes Warning (from warnings module): File "", line 1 '\e' DeprecationWarning: invalid escape sequence \e For both Shell a

[issue37824] IDLE: Handle Shell input warnings properly.

2020-05-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: To review: Serhiy reported 3 'IDLE' bugs: tripled DeprecationWarning (now joined by SyntaxWarning), printing to console (if available) instead of Shell, and an exit exception. 1. Codeop generates the tripicates; #40807 will fix that. 2. PR-15311 prints warni

[issue37824] IDLE: Handle Shell input warnings properly.

2020-05-28 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thanks, Terry. I created issue40807 for the codeop warnings. -- ___ Python tracker ___ ___ Pytho

[issue37824] IDLE: Handle Shell input warnings properly.

2020-05-27 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue37824] IDLE: Handle Shell input warnings properly.

2020-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: codeop._maybe_compile wraps each compile in try ... except SyntaxError. It can later reraise just once. I think it a bug that it is not similarly careful about SyntaxWarning and DeprecationWarning to only emit a particular warning just once. Cheryl, would

[issue37824] IDLE: Handle Shell input warnings properly.

2020-05-26 Thread Tal Einat
Change by Tal Einat : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue37824] IDLE: Handle Shell input warnings properly.

2020-05-25 Thread Cheryl Sabella
Cheryl Sabella added the comment: I added a commit to the PR to show warnings once. -- ___ Python tracker ___ ___ Python-bugs-list

[issue37824] IDLE: Handle Shell input warnings properly.

2020-05-25 Thread Cheryl Sabella
Cheryl Sabella added the comment: Terry, I put this into debug and found the reason it's printing the warning three times. In `codeop.py`, it's running `_maybe_compile` and there are three try statements: ``` def _maybe_compile(compiler, source, filename, symbol): # Check for source co

[issue37824] IDLE: Handle Shell input warnings properly.

2019-08-25 Thread miss-islington
miss-islington added the comment: New changeset 1b15914ebb46e549ff0965c789ef03b4bac2a890 by Miss Islington (bot) in branch '3.7': bpo-37824: Properly handle user input warnings in IDLE shell. (GH-15500) https://github.com/python/cpython/commit/1b15914ebb46e549ff0965c789ef03b4bac2a890 --

[issue37824] IDLE: Handle Shell input warnings properly.

2019-08-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 077887059a5b3d38161dfd74b160c701445a1ef0 by Terry Jan Reedy (Miss Islington (bot)) in branch '3.8': bpo-37824: Properly handle user input warnings in IDLE shell. (GH-15500) https://github.com/python/cpython/commit/077887059a5b3d38161dfd74b160c70

[issue37824] IDLE: Handle Shell input warnings properly.

2019-08-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +15190 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15504 ___ Python tracker ___ __

[issue37824] IDLE: Handle Shell input warnings properly.

2019-08-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +15191 pull_request: https://github.com/python/cpython/pull/15505 ___ Python tracker ___ __

[issue37824] IDLE: Handle Shell input warnings properly.

2019-08-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 1039f39c9c6edb4c185856c19316d3a4eb561c38 by Terry Jan Reedy in branch 'master': bpo-37824: Properly handle user input warnings in IDLE shell. (GH-15500) https://github.com/python/cpython/commit/1039f39c9c6edb4c185856c19316d3a4eb561c38

[issue37824] IDLE: Handle Shell input warnings properly.

2019-08-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: I pulled the part of PR 15311 that works, stop turning Shell SyntaxWarnings into SyntaxErrors, into PR-15500, to get it into b4. I will update the former after merging the latter. -- stage: patch review -> ___ P

[issue37824] IDLE: Handle Shell input warnings properly.

2019-08-25 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +15189 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15500 ___ Python tracker ___ __

[issue37824] IDLE: Handle Shell input warnings properly.

2019-08-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: My first post described master at the time, when SyntaxWarnings were converted to SyntexErrors and shell input warnings, in particular, Deprecation warnings were sent to the console or nowhere. My third post describes the situation with the PR, where Syntax

[issue37824] IDLE: Handle Shell input warnings properly.

2019-08-16 Thread Tal Einat
Tal Einat added the comment: I see none of this on latest master (0567786d26348aa7eaf0ab1b5d038fdabe409d92) on Windows 10. Can you specify on what OS and Python branch/version this happens? -- ___ Python tracker

[issue37824] IDLE: Handle Shell input warnings properly.

2019-08-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: The triple (or double, see below) printing seems like a pure bug to be fixed. A fix could be a separate PR to be merged 'immediately'. But there is a complication with insertion location. My bug claim was based on a one line statement, where 'before' looks

[issue37824] IDLE: Handle Shell input warnings properly.

2019-08-16 Thread Tal Einat
Tal Einat added the comment: Il take a look at this. I've very recently gone through the relevant parts of the code and I should be able to figure it it efficiently. -- ___ Python tracker __

[issue37824] IDLE: Handle Shell input warnings properly.

2019-08-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am combining the trivial 'leave Shell input SyntaxWarnings alone (instead of making them SyntaxErrors)' part of #34857 with this issue, 'print Shell input (and the very rare internal IDLE Warnings occurring after Shell exists) in Shell, and changing the ti

[issue37824] IDLE: Handle Shell input warnings properly.

2019-08-15 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +15030 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15311 ___ Python tracker ___ _

[issue37824] IDLE: Handle Shell input warnings properly.

2019-08-15 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +rhettinger, taleinat title: IDLE: DeprecationWarning not handled properly -> IDLE: Handle Shell input warnings properly. ___ Python tracker __