Visitar URL original
gh-95555: Support Unicode property escapes \p{...} in regular expressions by serhiy-storchaka · Pull Request #151969 · python/cpython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
gh-95555: Change the re MAGIC number to 20260622
Use the date the new opcodes were finalized rather than a future-dated
placeholder.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
  • Loading branch information
serhiy-storchaka and claude committed Jun 25, 2026
commit 55a2db72fc3785746ed70c81e88d57d781dec082
2 changes: 1 addition & 1 deletion Lib/re/_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

# update when constants are added or removed

MAGIC = 20260628
MAGIC = 20260622

from _sre import MAXREPEAT, MAXGROUPS # noqa: F401

Expand Down
2 changes: 1 addition & 1 deletion Modules/_sre/sre_constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* See the sre.c file for information on usage and redistribution.
*/

#define SRE_MAGIC 20260628
#define SRE_MAGIC 20260622
#define SRE_OP_FAILURE 0
#define SRE_OP_SUCCESS 1
#define SRE_OP_ANY 2
Expand Down
Loading