Message1878

Author mehendran
Recipients
Date 2007-08-29.09:01:11
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
When the call is made to the methods of 
obj which is of type PyStringDerived, 
StackOverflowError is thrown. 

for example

ex.py
-----
class weirdstr(str):
  def __getitem__(self, index):
    return weirdstr(2*str.__getitem__(self,index))
filter(lambda x: x>="33", weirdstr("1234"))

If u run the above example, you will get 

Traceback (innermost last):
  File "ex.py", line 4, in ?
  File "ex.py", line 4, in <lambda>
java.lang.StackOverflowError
---
---
---
History
Date User Action Args
2008-02-20 17:18:00adminlinkissue1783868 messages
2008-02-20 17:18:00admincreate