[issue45764] Parse error improvement forgetting ( after def

2021-11-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Normally we don't backport new errors to old versions so we can close this. Thanks for the ping! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue45764] Parse error improvement forgetting ( after def

2021-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Pablo, did you intend to backport to 3.10 or should this be closed? -- nosy: +pablogsal, terry.reedy type: -> enhancement versions: +Python 3.11 ___ Python tracker

[issue45764] Parse error improvement forgetting ( after def

2021-11-09 Thread miss-islington
miss-islington added the comment: New changeset 2819e98d1048238bf94dc2ba88ae2455d01861bc by Carl Friedrich Bolz-Tereick in branch 'main': bpo-45764: improve error message when missing '(' after 'def' (GH-29484) https://github.com/python/cpython/commit/2819e98d1048238bf94dc2ba88ae2455d01861bc

[issue45764] Parse error improvement forgetting ( after def

2021-11-09 Thread Carl Friedrich Bolz-Tereick
Change by Carl Friedrich Bolz-Tereick : -- keywords: +patch pull_requests: +27735 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29484 ___ Python tracker

[issue45764] Parse error improvement forgetting ( after def

2021-11-09 Thread Carl Friedrich Bolz-Tereick
New submission from Carl Friedrich Bolz-Tereick : Something I see beginners make occasionally when defining functions without arguments is this: def f: ... Right now it just gives an "invalid syntax", would be nice to get an "expected '('". I will try to give this a go! Should be a