From: nobody <no...@so...> - 2001-02-25 15:38:54
|
Artifact #229252, was updated on 2001-01-18 07:27 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112867&aid=229252&group_id=12867 Category: Jythonc compiler Group: None Status: Closed Priority: 5 Submitted By: Brian Ericson Assigned to: Nobody/Anonymous Summary: try/except/else statements improperly compiled Initial Comment: #!/usr/bin/python if __name__ == "__main__": try: raise "me" except: print "In except..." else: print "In else..." The above should execute the except block only, and does when run by jython: [core 737] /opt/jython-2.0/jython test.py In except... However, when byte-compiled using jythonc and run by Java, both the except and the else block are executed: [core 742] java -classpath ./test.jar:/opt/jython-2.0/jython.jar test In except... In else... ---------------------------------------------------------------------- Comment By: Finn Bock Date: 2001-02-25 07:39 Message: Logged In: YES user_id=4201 Fixed in SimpleCompiler.py 2.13; ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112867&aid=229252&group_id=12867 |