Skip to content

Commit 9c9921c

Browse files
committed
object.py builtin extension module: add missing reduce_1 pickle function
1 parent 462efb9 commit 9c9921c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

graalpython/lib-graalpython/object.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ def _getstate(obj):
8888
return state
8989

9090

91+
def reduce_1(obj, proto):
92+
import copyreg
93+
return copyreg._reduce_ex(obj, proto)
94+
95+
9196
def reduce_2(obj, proto, args, kwargs):
9297
cls = obj.__class__
9398

0 commit comments

Comments
 (0)