Implement missing __reduce__ and __reduce_ex__ for several types
#3611
Labels
{{ message }}
__reduce__ and __reduce_ex__ for several types
#3611
Feature
Many existing test cases check that
pickle.dumpsandpickle.loadsof a given type return the exact same value. Almost failed pickle test in RustPython, lack__reduce__method.arrayiterator.__reduce__(test_array::test_iterator_pickle)filter.__reduce__(test_builtin::test_filter_pickle)map.__reduce__(test_builtin::test_map_pickle)ImportError.__reduce__(test_exceptions::test_copy_pickle)OSError.__reduce__BaseException.__reduce__— #3665method.__reduce__groupby.__reduce___grouper.__reduce__tee.__reduce__cycle.__reduce__dropwhile.__reduce__takewhile.__reduce__islice.__reduce__starmap.__reduce__chain.__reduce__product.__reduce__combinations.__reduce__combinations_with_replacement.__reduce__permutations.__reduce__accumulate.__reduce__compress.__reduce__filterfalse.__reduce__count.__reduce__zip_longest.__reduce__NotImplemented.__reduce__types.SimpleNamespace.__reduce__These listed elements are almost similar and quite simple to implement.
Please take a look at many PR and existing codes for
__reduce__The text was updated successfully, but these errors were encountered: