[issue42218] SystemError in compile builtin function

2020-10-31 Thread Zac Hatfield-Dodds


Zac Hatfield-Dodds  added the comment:

Wow!  Thanks and congrats on the super-fast fix :-)


FYI Paul Ganssle has recently [1] started to work on adding property-based 
tests to CPython CI [2].  Once Paul gets the stubs and first set of tests 
working, I'll start moving the others over from my demo repo [3] to CPython 
master so we catch this kind of bug earlier in future.

[1] https://bugs.python.org/issue42109; see also 
https://bugs.python.org/issue38953
[2] https://pyfound.blogspot.com/2020/05/property-based-testing-for-python.html
[3] https://github.com/Zac-HD/stdlib-property-tests

--

___
Python tracker 

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



[issue42218] SystemError in compile builtin function

2020-10-31 Thread Lysandros Nikolaou


Change by Lysandros Nikolaou :


--
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



[issue42218] SystemError in compile builtin function

2020-10-31 Thread miss-islington


miss-islington  added the comment:


New changeset cfcb952e30e01d7cce430829af8edc7afc94e0b1 by Lysandros Nikolaou in 
branch '3.9':
[3.9] bpo-42218: Correctly handle errors in left-recursive rules (GH-23065) 
(GH-23066)
https://github.com/python/cpython/commit/cfcb952e30e01d7cce430829af8edc7afc94e0b1


--
nosy: +miss-islington

___
Python tracker 

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



[issue42218] SystemError in compile builtin function

2020-10-31 Thread Lysandros Nikolaou


Change by Lysandros Nikolaou :


--
pull_requests: +21985
pull_request: https://github.com/python/cpython/pull/23066

___
Python tracker 

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



[issue42218] SystemError in compile builtin function

2020-10-31 Thread Lysandros Nikolaou


Lysandros Nikolaou  added the comment:


New changeset 02cdfc93f82fecdb7eae97a868d4ee222b9875d9 by Lysandros Nikolaou in 
branch 'master':
bpo-42218: Correctly handle errors in left-recursive rules (GH-23065)
https://github.com/python/cpython/commit/02cdfc93f82fecdb7eae97a868d4ee222b9875d9


--

___
Python tracker 

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



[issue42218] SystemError in compile builtin function

2020-10-31 Thread Lysandros Nikolaou


Change by Lysandros Nikolaou :


--
nosy: +lys.nikolaou
nosy_count: 3.0 -> 4.0
pull_requests: +21984
pull_request: https://github.com/python/cpython/pull/23065

___
Python tracker 

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



[issue42218] SystemError in compile builtin function

2020-10-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Nice catch Zac!

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue42218] SystemError in compile builtin function

2020-10-31 Thread Batuhan Taskaya


Change by Batuhan Taskaya :


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

___
Python tracker 

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



[issue42218] SystemError in compile builtin function

2020-10-31 Thread Batuhan Taskaya


Change by Batuhan Taskaya :


--
nosy: +BTaskaya

___
Python tracker 

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



[issue42218] SystemError in compile builtin function

2020-10-31 Thread Zac Hatfield-Dodds


New submission from Zac Hatfield-Dodds :

In Python 3.9.0, running

compile('A.\u018a\\ ', '', 'single')

raises

SystemError:  returned a result with an error 
set

This is obviously invalid syntax, but it would still be nice to raise 
SyntaxError for that and the SystemError may be symptomatic of a bug.  
Unfortunately I have no insight to offer beyond this hand-minimised reproducer 
:-/

--
components: Interpreter Core
messages: 380053
nosy: Zac Hatfield-Dodds
priority: normal
severity: normal
status: open
title: SystemError in compile builtin function
versions: Python 3.9

___
Python tracker 

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