Message830

Author irmen
Recipients
Date 2003-04-30.12:20:42
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
I've run into some trouble using Jython 2.1
(jdk 1.4, 1.3, windows, linux). and also the
current (2003-04-30) CVS version:

The following piece of Python code:
----
def method():
    try:
        for dummy in [1,2,3]:
            try:
                return "result"
            except:
                pass
    finally:
        pass

print method()
----

fails to compile in Jython, I get this error:

java.lang.VerifyError: java.lang.VerifyError: (class:
test$py, method: method$1 signature:
(Lorg/python/core/PyFrame;)Lorg/python/core/PyObject;)
Register 3 contains wrong type


That piece of code above seems to be the minimal piece
of code to trigger the problem. Something to do with
nested try blocks and a loop?

--Irmen de Jong.
History
Date User Action Args
2008-02-20 17:17:14adminlinkissue730156 messages
2008-02-20 17:17:14admincreate