Message1829

Author mehendran
Recipients
Date 2007-08-13.13:47:14
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Code snippet:
-------------
class mystr(str):
    def __init__(self, x):
        self.str = str(x)
a = mystr('x')
b = str(a) # This doesn't work

In this code, I am not able to pass the 'a' value to 'str' type.
It throws stack overflow error. The bug is not in the pickle module, 
but is only in this line. I am trying to figure out. 
History
Date User Action Args
2008-02-20 17:17:58adminlinkissue1768990 messages
2008-02-20 17:17:58admincreate