Message3303
2.5 test_exceptions has a testInfiniteRecursion test that expects stack
overflows to raise a RuntimeError:
Python 2.5.2 (r252:60911, Apr 22 2008, 12:00:45)
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> def f():
... return f()
...
File "<stdin>", line 2, in f
<etc..>
File "<stdin>", line 2, in f
RuntimeError: maximum recursion depth exceeded
We generate a Java StackOverflowError instead:
File "<stdin>", line 2, in f
File "<stdin>", line 2, in f
java.lang.StackOverflowError
at java.util.HashMap.get(HashMap.java:343)
at
org.python.core.InternalTables.classesGet(InternalTables.java:150)
at
org.python.core.InternalTables.getCanonical(InternalTables.java:250)
at org.python.core.PyJavaClass.lookup(PyJavaClass.java:51)
at org.python.core.PyJavaInstance.<init>(PyJavaInstance.java:20) |
|
Date |
User |
Action |
Args |
2008-06-24 00:41:11 | pjenvey | set | spambayes_score: 0.0353348 -> 0.035334755 recipients:
+ pjenvey |
2008-06-24 00:41:11 | pjenvey | set | spambayes_score: 0.0353348 -> 0.0353348 messageid: <1214268071.37.0.81485181498.issue1063@psf.upfronthosting.co.za> |
2008-06-24 00:41:11 | pjenvey | link | issue1063 messages |
2008-06-24 00:41:10 | pjenvey | create | |
|