Pickling generators
Ioannis Foufoulas <[email protected]>
| Newsgroups | gmane.comp.python.pypy |
|---|---|
| Message-ID | <[email protected]> |
Hi,
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?
Thanks,
Yannis