I am fairly new to Python and Jython. I am using Python 2.4 and Jython 2.2b1. I have been running few test programs and I found that Jython interpreter fails when it encounters a @classmethod decorator in a Python file. The error message is
Traceback (innermost last):
File "D:\JythonTest\deco.py", line 19, in ?
File "D:\JythonTest\java.py", line 2, in ?
File "D:\JythonTest\myapp.py", line 960
SyntaxError: Lexical error at line 960, column 5. Encountered: "@" (64), after : ""
One of the possible solutions could be to change the classmethod declaration to the old fashined way of using classmethod() function. But I would still like to know if I can have the problem addressed by still retaining the @classmethod decorator.