Problems with Py.assert in jython2.1 and java 1.4
Tim Scheffler
scheff at bigfoot.de
Wed May 8 05:32:49 EDT 2002
Dear all,
I'm a newby to jython (and to java) and I am desperately trying to
implement the Console.py demo as an applet. Trying to jythonc-compile
an "applet"-modified version of the Console.py I am running into
errors of the following kind:
"""
.\jpywork\javaos.java:965: warning: as of release 1.4, assert is a
keyword, and
may not be used as an identifier
if (frame.getglobal("__debug__").__nonzero__())
Py.assert(frame.getl
ocal(0).__getattr__("environment").invoke("items").__not__(), s$107);
"""
I am using Windows-NT.
Is jython not compatible with java 1.4?
Any help/suggestions are welcome.
Regards,
Tim
More information about the Python-list
mailing list