This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author arigo
Recipients alexandre.vassalotti, arigo, kristjan.jonsson, serhiy.storchaka
Date 2015-11-25.09:59:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1448445546.73.0.377434581403.issue25718@psf.upfronthosting.co.za>
In-reply-to
Content
Ok, then with pickle you can have the same problem but only with None-vs-no-total.  Here is an artificial example:

import itertools, pickle

def foo(a, b):
    print(a, b)

a = itertools.accumulate([3, 4, 5], foo)
next(a)
next(a)   # prints: 3, 4

b = pickle.loads(pickle.dumps(a))

next(a)   # prints: None, 5
next(b)   # foo() is not called at all
History
Date User Action Args
2015-11-25 09:59:06arigosetrecipients: + arigo, kristjan.jonsson, alexandre.vassalotti, serhiy.storchaka
2015-11-25 09:59:06arigosetmessageid: <1448445546.73.0.377434581403.issue25718@psf.upfronthosting.co.za>
2015-11-25 09:59:06arigolinkissue25718 messages
2015-11-25 09:59:06arigocreate