Pickling of generators

KIaus Muller kgmuller at gmail.com
Fri Feb 16 05:44:28 EST 2007


Generators are becoming more and more important and powerful in Python. The
inability of pickle to save/restore generators has become a major (and
growing) limitation to the full exploitation of generators.

The requirement for pickling generators has already been raised in 2003.

My project (SimPy - Simulation in Python) has had this requirement since its
inception in 2002. Generator pickling would make saving and reloading
simulation state trivial. The workarounds one has to use without this
capability are baroque and beyond the expertise of a typical simulation
user.

Is there any hope of action in this area in the foreseeable future?

Klaus Muller (Lead designer of SimPy)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070216/f7eaeae8/attachment.html>


More information about the Python-list mailing list