468,292 Members | 1,486 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,292 developers. It's quick & easy.

set.__getstate__ not overriden

>>> import pickle
class Foo(set): .... def __getstate__(self): assert False
pickle.dumps(Foo())

# doesn't raise AssertionError

The same happens with frozenset. Before I submit it to the bugs
tracker, is there a chance this is a 'feature' ?

George

Oct 10 '05 #1
0 1125

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Thomas Güttler | last post: by
1 post views Thread by Prithvis | last post: by
5 posts views Thread by Przemek | last post: by
reply views Thread by cheloman12 | last post: by
1 post views Thread by cheloman12 | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.