mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
#2834: Change re module semantics, so that str and bytes mixing is forbidden,
and str (unicode) patterns get full unicode matching by default. The re.ASCII flag is also introduced to ask for ASCII matching instead.
This commit is contained in:
parent
3ad7ba10a2
commit
fd036451bf
37 changed files with 280 additions and 163 deletions
|
@ -5415,7 +5415,7 @@ ExtendedContext = Context(
|
|||
# 2. For finite numbers (not infinities and NaNs) the body of the
|
||||
# number between the optional sign and the optional exponent must have
|
||||
# at least one decimal digit, possibly after the decimal point. The
|
||||
# lookahead expression '(?=\d|\.\d)' checks this.
|
||||
# lookahead expression '(?=[0-9]|\.[0-9])' checks this.
|
||||
#
|
||||
# As the flag UNICODE is not enabled here, we're explicitly avoiding any
|
||||
# other meaning for \d than the numbers [0-9].
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue