Issue1005593
Created on 2004-08-08.18:39:20 by anonymous, last changed 2005-04-02.01:41:21 by fwierzbicki.
History | |||
---|---|---|---|
Date | User | Action | Args |
2004-08-08 18:39:20 | anonymous | create |
Created on 2004-08-08.18:39:20 by anonymous, last changed 2005-04-02.01:41:21 by fwierzbicki.
Messages | |||
---|---|---|---|
msg921 (view) | Author: Nobody/Anonymous (nobody) | Date: 2004-08-08.18:39:20 | |
I have a Python program that makes use of the assert() function. The current Jython translates this to Py.assert(), and the Java chokes on it! I have tried jdk 1.4 and 1.5, with -source 1.3, -source 1.4 and none of them work! John |
|||
msg922 (view) | Author: Nobody/Anonymous (nobody) | Date: 2004-12-28.17:24:53 | |
Logged In: NO not a problem. Just rename the assert method to Assert or asserT in the source files and rebuild. Works normally after that. Modified java files should be: Py.java PyJavaClass.java PythonGrammerConstants.java mg |
|||
msg923 (view) | Author: Mike_G (archon55) | Date: 2004-12-28.17:31:26 | |
Logged In: YES user_id=1186138 not a problem. Just rename the assert method to Assert or asserT in the source files and rebuild. Works normally after that. Modified java files should be: Py.java PyJavaClass.java PythonGrammerConstants.java mg |
|||
msg924 (view) | Author: Frank Wierzbicki (fwierzbicki) | Date: 2005-04-02.01:41:21 | |
Logged In: YES user_id=193969 This is fixed in the tip by changing assert to assert_ in Py.java. The assert keyword works on tip: Jython 2.2a1 on java1.4.2_05 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> assert True >>> assert False Traceback (innermost last): File "<console>", line 1, in ? AssertionError: >>> |
History | |||
---|---|---|---|
Date | User | Action | Args |
2004-08-08 18:39:20 | anonymous | create |
Supported by Python Software Foundation,
Powered by Roundup