|
From: <bc...@wo...> - 2001-10-06 20:42:37
|
[Erik Heneryd] >consider the following function: > >def f(): > try: > return 1 > except SomeException: > return 2 > except: > return 3 > >when i try to call this in jython, running on the jvm included in >win 2000, jython will die. problem seems to be that you cant have >a return in the try block if you have returns in all of the >following excepts. > >this works fine with other jvms ive tried, so i guess this is a bug >in ms' jvm? Yes, it is seems to be a MS-only issue. Your small example made it a lot easier to track down (it is the same problem that have prevented the use of jview with jythonc). A fix have been commited to CodeCompiler.java. Thanks for reporting the bug with such a small test example. regards, finn |