Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > set.__getstate__ not overriden

Reply
Thread Tools

set.__getstate__ not overriden

 
 
George Sakkis
Guest
Posts: n/a
 
      10-10-2005
>>> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GridView problems with viewstate events overriden. =?Utf-8?B?Y2hlbG9tYW4xMg==?= ASP .Net 1 05-09-2006 04:30 PM
overriden viewstate events and gridview =?Utf-8?B?Y2hlbG9tYW4xMg==?= ASP .Net 0 05-04-2006 12:00 PM
Overriden method doesn't throw Exception, super may. VisionSet Java 51 07-13-2004 11:28 PM
Re: return types for virtual overriden functions Howard C++ 2 07-31-2003 03:03 PM
Re: return types for virtual overriden functions Makis Papapanagiotou C++ 2 07-31-2003 02:50 PM



Advertisments