[issue47212] Minor issues in reported Syntax errors

2022-04-05 Thread Alex Waygood


Change by Alex Waygood :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47212] Minor issues in reported Syntax errors

2022-04-05 Thread miss-islington


miss-islington  added the comment:


New changeset 94609e3192f15636c760a48c4c1c2c236fac3217 by Matthieu Dartiailh in 
branch '3.10':
[3.10] Backport bpo-47212 (GH-32302) to Python 3.10 (GH-32334)
https://github.com/python/cpython/commit/94609e3192f15636c760a48c4c1c2c236fac3217


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47212] Minor issues in reported Syntax errors

2022-04-05 Thread Matthieu Dartiailh


Change by Matthieu Dartiailh :


--
pull_requests: +30391
pull_request: https://github.com/python/cpython/pull/32334

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47212] Minor issues in reported Syntax errors

2022-04-05 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset aa0f056a00c4bcaef83d729e042359ddae903382 by Matthieu Dartiailh in 
branch 'main':
bpo-47212: Improve error messages for un-parenthesized generator expressions 
(GH-32302)
https://github.com/python/cpython/commit/aa0f056a00c4bcaef83d729e042359ddae903382


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47212] Minor issues in reported Syntax errors

2022-04-04 Thread Matthieu Dartiailh


Change by Matthieu Dartiailh :


--
keywords: +patch
pull_requests: +30364
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/32302

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47212] Minor issues in reported Syntax errors

2022-04-04 Thread Matthieu Dartiailh


New submission from Matthieu Dartiailh :

Hi,
While working on Pegen I noticed that:
- the invalid_arguments rule would non point to the full generator expression 
in its second and fifth alternatives
- when reporting an indentation error after a bare except, the error is 
actually a SyntaxError

I will open a PR shortly to address both since the changes are quite minimal 
IMO.

--
components: Parser
messages: 416662
nosy: lys.nikolaou, mdartiailh, pablogsal
priority: normal
severity: normal
status: open
title: Minor issues in reported Syntax errors
type: behavior
versions: Python 3.10, Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com