[issue47227] Suppress expression chaining for RE parsing errors

2022-04-06 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue47227] Suppress expression chaining for RE parsing errors

2022-04-06 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 50872dbadcba1f52867b6f76050cd7b5d0aa1e18 by Serhiy Storchaka in 
branch 'main':
bpo-47227: Suppress expression chaining for more RE parsing errors (GH-32333)
https://github.com/python/cpython/commit/50872dbadcba1f52867b6f76050cd7b5d0aa1e18


--

___
Python tracker 

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



[issue47227] Suppress expression chaining for RE parsing errors

2022-04-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue47227] Suppress expression chaining for RE parsing errors

2022-04-05 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

The EAFP principle is widely used in the regular expressions parsing code. 
Exceptions like KeyError, IndexError, ValueError or OverflowError raised during 
parsing are converted into a helpful re.error. Expression chaining is usually 
suppressed in such cases to hide unrelated implementation details, but not in 
all cases. The following PR adds more "from None" in "raise" statements inside 
"except" blocks.

--
components: Library (Lib), Regular Expressions
messages: 416774
nosy: ezio.melotti, mrabarnett, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Suppress expression chaining for RE parsing errors
type: enhancement
versions: Python 3.11

___
Python tracker 

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