Message1878
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
---
---
--- |
|
Date |
User |
Action |
Args |
2008-02-20 17:18:00 | admin | link | issue1783868 messages |
2008-02-20 17:18:00 | admin | create | |
|