471,086 Members | 1,109 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,086 software developers and data experts.

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 1172

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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.