Issue 40627: Bus error on 'except E as a.b:' - Python tracker

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
process
Status: closed Resolution: duplicate
Dependencies: Superseder: PEG Parser: Invalid targets for augassign and except succeed
View: 40618
Assigned To: Nosy List: gvanrossum, lys.nikolaou, pablogsal
Priority: normal Keywords: patch

Created on 2020-05-14 18:27 by gvanrossum, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 20083 gvanrossum, 2020-05-14 18:29
Messages (3)
msg368860 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2020-05-14 18:27
This seems due to some new check in pegen:

>>> try:
...   pass
... except E as a.b:
...   pass
... 
Bus error: 10
msg368861 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2020-05-14 18:29
Oh, looks like https://github.com/python/cpython/pull/20083 fixes it.
msg368862 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2020-05-14 18:31
Sorry!