[New-bugs-announce] [issue35496] left-to-right violation in match order
Steve Newcomb
report at bugs.python.org
Fri Dec 14 11:06:16 EST 2018
New submission from Steve Newcomb <srn at coolheads.com>:
Documentation for the re module insists that matches are made left-to-right within the alternatives delimited by an "or* | group. I seem to have found a case where the rightmost alternative is matched unless it (and only it) is commented out. See attached script, which is self-explanatory.
----------
files: left-to-right_violation_in_python3_re_match.py
messages: 331838
nosy: steve.newcomb
priority: normal
severity: normal
status: open
title: left-to-right violation in match order
type: behavior
versions: Python 3.6
Added file: https://bugs.python.org/file47997/left-to-right_violation_in_python3_re_match.py
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35496>
_______________________________________
More information about the New-bugs-announce
mailing list