classification
Title: Some target-related rules are unreachable in the grammar
Type: behavior Stage: resolved
Components: Parser Versions: Python 3.11
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: lys.nikolaou Nosy List: gvanrossum, lys.nikolaou, miss-islington, pablogsal
Priority: normal Keywords: patch

Created on 2021-06-10 21:42 by lys.nikolaou, last changed 2021-06-10 22:52 by miss-islington. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 26655 merged lys.nikolaou, 2021-06-10 21:44
PR 26657 merged miss-islington, 2021-06-10 22:05
PR 26659 merged lys.nikolaou, 2021-06-10 22:26
Messages (4)
msg395577 - (view) Author: Lysandros Nikolaou (lys.nikolaou) * (Python committer) Date: 2021-06-10 21:42
Three rules (targets, target and t_atom) in the grammar are unreachable. We were using them at some point in the past, but we never removed them when we replaced them with other rules.
msg395581 - (view) Author: miss-islington (miss-islington) Date: 2021-06-10 22:05
New changeset e7b4644607789848f9752a3bd20ff216e25b4156 by Lysandros Nikolaou in branch 'main':
bpo-44385: Remove unused grammar rules (GH-26655)
https://github.com/python/cpython/commit/e7b4644607789848f9752a3bd20ff216e25b4156
msg395582 - (view) Author: miss-islington (miss-islington) Date: 2021-06-10 22:31
New changeset 3e137426de3e6a37622b2ca61207b1323fdea11f by Miss Islington (bot) in branch '3.10':
bpo-44385: Remove unused grammar rules (GH-26655)
https://github.com/python/cpython/commit/3e137426de3e6a37622b2ca61207b1323fdea11f
msg395586 - (view) Author: miss-islington (miss-islington) Date: 2021-06-10 22:52
New changeset 3ce35bfbbe29664942f9a8c50c177a4575a31934 by Lysandros Nikolaou in branch '3.9':
[3.9] bpo-44385: Remove unused grammar rules (GH-26655) (GH-26659)
https://github.com/python/cpython/commit/3ce35bfbbe29664942f9a8c50c177a4575a31934
History
Date User Action Args
2021-06-10 22:52:56miss-islingtonsetmessages: + msg395586
2021-06-10 22:38:54lys.nikolaousetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2021-06-10 22:31:18miss-islingtonsetmessages: + msg395582
2021-06-10 22:26:44lys.nikolaousetpull_requests: + pull_request25245
2021-06-10 22:05:15miss-islingtonsetpull_requests: + pull_request25243
2021-06-10 22:05:13miss-islingtonsetnosy: + miss-islington
messages: + msg395581
2021-06-10 21:44:20lys.nikolaousetkeywords: + patch
stage: patch review
pull_requests: + pull_request25241
2021-06-10 21:42:26lys.nikolaoucreate