[issue42810] Nested if/else gets phantom else trace (3.10)

2021-01-04 Thread Mark Shannon
Change by Mark Shannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42810] Nested if/else gets phantom else trace (3.10)

2021-01-04 Thread Mark Shannon
Mark Shannon added the comment: New changeset 127dde591686816e379d1add015304e6b9fb6954 by Mark Shannon in branch 'master': bpo-42810: Mark jumps at end of if and try statements as artificial. (GH-24091) https://github.com/python/cpython/commit/127dde591686816e379d1add015304e6b9fb6954 --

[issue42810] Nested if/else gets phantom else trace (3.10)

2021-01-04 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +22922 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24091 ___ Python tracker ___ ___

[issue42810] Nested if/else gets phantom else trace (3.10)

2021-01-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: There is something wrong elsewhere as well because even if reverting that commit fix the problem: ❯ git reset --hard upstream/master HEAD is now at bd2728b1e8 bpo-42806: Fix ast locations of f-strings inside parentheses (GH-24067) ~/github/python/mast

[issue42810] Nested if/else gets phantom else trace (3.10)

2021-01-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Bisecting points at this commit as the culprit: 28b75c80dcc1e17ed3ac1c69362bf8dc164b760a is the first bad commit commit 28b75c80dcc1e17ed3ac1c69362bf8dc164b760a Author: Mark Shannon Date: Wed Dec 23 11:43:10 2020 + bpo-42246: Don't eliminate

[issue42810] Nested if/else gets phantom else trace (3.10)

2021-01-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: Confirmed. This regression happened between 3.10 alpha 2 and today's build: $ python3.10 --version Python 3.10.0a2 $ python3.10 -m trace --trace tmp19.py --- modulename: tmp19, funcname: tmp19.py(1): a = b = x = y = z = 1 tmp19.py(2): if a == 1: tmp19.py

[issue42810] Nested if/else gets phantom else trace (3.10)

2021-01-02 Thread Ned Batchelder
Ned Batchelder added the comment: This might be the same problem as #42803. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue42810] Nested if/else gets phantom else trace (3.10)

2021-01-02 Thread Ned Batchelder
New submission from Ned Batchelder : (Using CPython commit 6b1ac809b9) This program never executes line 6, but tracing it claims that it does: a = b = x = y = z = 1 if a == 1: if b == 1: x = 4 else: y = 6 else: z = 8 assert (a, b,