Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions Lib/sre_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ def __new__(cls, value, name):
def __repr__(self):
return self.name

__reduce__ = None

MAXREPEAT = _NamedIntConstant(MAXREPEAT, 'MAXREPEAT')

def _makecodes(names):
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Forbid pickling constants ``re._constants.SUCCESS`` etc. Previously,
pickling did not fail, but the result could not be unpickled.