[issue43163] codeop prematurely raises on 2nd line when closer is needed

2021-02-11 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: >Pablo, Is there any sane possibility that the compiler could, at least >sometimes, raise an IncompleteSyntax subclass of SyntaxError when code is >merely incomplete, as opposed to wrong? I'm assuming you mean the parser (when the compiler runs the co

[issue43163] codeop prematurely raises on 2nd line when closer is needed

2021-02-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue is for 3.10 only since the never-closed message was only added for 3.10.0a5 and not backported. Pablo, Is there any sane possibility that the compiler could, at least sometimes, raise an IncompleteSyntax subclass of SyntaxError when code is merel

[issue43163] codeop prematurely raises on 2nd line when closer is needed

2021-02-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset dbb228189b4eb7ab41f326eb79dae669b2c81177 by Pablo Galindo in branch 'master': bpo-43163: Handle unclosed parentheses in codeop (GH-24483) https://github.com/python/cpython/commit/dbb228189b4eb7ab41f326eb79dae669b2c81177 --

[issue43163] codeop prematurely raises on 2nd line when closer is needed

2021-02-09 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43163] codeop prematurely raises on 2nd line when closer is needed

2021-02-08 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +23275 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/24483 ___ Python tracker ___

[issue43163] codeop prematurely raises on 2nd line when closer is needed

2021-02-08 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > (I think it would be good if a C expert compared it to the *current* C code.) That would be very beneficial but is quite a big task, specially given that codeop design is quite surprising. I personally find quite confusing the way codeop is handling

[issue43163] codeop prematurely raises on 2nd line when closer is needed

2021-02-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: codeop prematurely raises SyntaxError when closer is needed -> codeop prematurely raises on 2nd line when closer is needed ___ Python tracker