[issue44447] Syntax Error not as detailed as shown

2021-06-24 Thread Eesa Ibrahim Khokhar
Eesa Ibrahim Khokhar added the comment: OK, Thanks for letting me know! On Fri, Jun 18, 2021 at 3:09 PM Pablo Galindo Salgado < rep...@bugs.python.org> wrote: > > Pablo Galindo Salgado added the comment: > > Indeed, as Andre mentions your example is different because in you case > the call i

[issue44447] Syntax Error not as detailed as shown

2021-06-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Indeed, as Andre mentions your example is different because in you case the call is interpreted as a generator comprehension, not as a function call. -- resolution: -> not a bug stage: -> resolved status: open -> closed _

[issue44447] Syntax Error not as detailed as shown

2021-06-18 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- components: +Parser -Regular Expressions nosy: +lys.nikolaou, pablogsal type: performance -> behavior ___ Python tracker ___ _

[issue44447] Syntax Error not as detailed as shown

2021-06-17 Thread Andre Roberge
Andre Roberge added the comment: Your example is different than the one in the documentation (What's new). >>> (x, x for x in range(7)) # Your example File "", line 1 (x, x for x in range(7)) ^^^ SyntaxError: invalid syntax >>> foo(x, x for x in range(7)) # Example similar t

[issue44447] Syntax Error not as detailed as shown

2021-06-17 Thread Eesa Ibrahim Khokhar
New submission from Eesa Ibrahim Khokhar : I was testing the new features for python 3.10 beta 3, and noticed the errors were not as detailed as shown in the docs. I have an image below: In the docs, it was said that the entire generator statement would be pointed out by carets. However, it