On 11/20/2014 12:09 AM, Steven D'Aprano wrote:
No idea. But you can marshal StopIteration itself, but not StopIteration instances:py> marshal.dumps(StopIteration) 'S' py> marshal.dumps(StopIteration()) Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: unmarshallable object
Ditto for other exception classes I tried. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list