homepage

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 amaury.forgeotdarc
Recipients amaury.forgeotdarc, erickt, ocean-city
Date 2008年10月22日.16:18:23
SpamBayes Score 8.311722e-08
Marked as misclassified No
Message-id <1224692304.39.0.348777135136.issue4170@psf.upfronthosting.co.za>
In-reply-to
Content
The pickle protocol should also check that __reduce__ returns iterators
(iterables are not enough).
The code below crashes the interpreter (twice ;-)
class C:
 def __reduce__(self):
 return C, (), None, None, []
class D:
 def __reduce__(self):
 return D, (), None, [], None
import pickle
pickle.dumps(C())
pickle.dumps(D())
History
Date User Action Args
2008年10月22日 16:18:24amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, ocean-city, erickt
2008年10月22日 16:18:24amaury.forgeotdarcsetmessageid: <1224692304.39.0.348777135136.issue4170@psf.upfronthosting.co.za>
2008年10月22日 16:18:23amaury.forgeotdarclinkissue4170 messages
2008年10月22日 16:18:23amaury.forgeotdarccreate

AltStyle によって変換されたページ (->オリジナル) /