Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite8ff3c9

Browse files
[3.10]pythongh-92049: Forbid pickling constants re._constants.SUCCESS etc (pythonGH-92070) (pythonGH-92073)
Previously, pickling did not fail, but the result could not be unpickled.(cherry picked from commit6d0d547)
1 parent19a0796 commite8ff3c9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

‎Lib/sre_constants.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ def __new__(cls, value, name):
6262
def__repr__(self):
6363
returnself.name
6464

65+
__reduce__=None
66+
6567
MAXREPEAT=_NamedIntConstant(MAXREPEAT,'MAXREPEAT')
6668

6769
def_makecodes(names):
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Forbid pickling constants ``re._constants.SUCCESS`` etc. Previously,
2+
pickling did not fail, but the result could not be unpickled.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp