[pypy-dev] Pickling generators

Ioannis Foufoulas johnfouf at gmail.com
Fri Dec 11 06:55:17 EST 2020

While in PyPy was possible to pickle a generator function and resume after unpicking this does not happen with PyPy3:

File "/snap/pypy3/72/lib-python/3/pickle.py", line 942, in save_global
    (obj, module_name, name))
pickle.PicklingError: Can't pickle <class 'generator'>: it's not found as builtins.generator

Is this a bug or this feature is removed in PyPy3?


More information about the pypy-dev mailing list