> > [snip] > > As Python is being increasingly used for data science, this use case will > be increasingly common. Being able to copy generators will save a lot of > work. > > Keep in mind, I don't necessarily propose that generators should be fully > picklable; there are obviously a number of concerns and problems there. > Just being able to duplicate the generator's state within the interpreter > would be enough for my use case. > > [snip] > > Thoughts? > > I also remember I wanted this feature few times in the past, I like the idea. The problem is who will implement this? If you have time and energy, then you can just try (but beware, it may be harder that it looks).
-- Ivan
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/