Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.11] Clarify re docs for byte pattern group names (GH-99308) #101001

Merged
merged 1 commit into from
Mar 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Doc/library/re.rst
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,8 @@ The special characters are:
+---------------------------------------+----------------------------------+

.. deprecated:: 3.11
Group names containing non-ASCII characters in bytes patterns.
Group *name* containing characters outside the ASCII range
(``b'\x00'``-``b'\x7f'``) in :class:`bytes` patterns.

.. index:: single: (?P=; in regular expressions

Expand Down Expand Up @@ -494,6 +495,8 @@ The special characters are:

.. deprecated:: 3.11
Group *id* containing anything except ASCII digits.
Group *name* containing characters outside the ASCII range
(``b'\x00'``-``b'\x7f'``) in :class:`bytes` replacement strings.


The special sequences consist of ``'\'`` and a character from the list below.
Expand Down Expand Up @@ -1015,7 +1018,8 @@ Functions

.. deprecated:: 3.11
Group *id* containing anything except ASCII digits.
Group names containing non-ASCII characters in bytes replacement strings.
Group *name* containing characters outside the ASCII range
(``b'\x00'``-``b'\x7f'``) in :class:`bytes` replacement strings.


.. function:: subn(pattern, repl, string, count=0, flags=0)
Expand Down