wls:/offline> from __future__ import generators
wls:/offline> import argparse
Traceback (innermost last):
File "<console>", line 1, in ?
File "/opt/weblogic/jython/Lib/argparse.py", line 1131
except IOError as e:
SyntaxError: invalid syntax
Jeff Allen <email@example.com> added the comment:
That's a very old Jython.
The yield keyword in Python 2.2 was a __future__ feature. (https://docs.python.org/2.2/ref/yield.html)
I've seen documentation somewhere on wlst that led me to believe 2.7.0 is supplied. Is your argparse.py maybe coming from a 2.7 library? Leading to the hope that there's a 2.7 implementation around?
Jython tracker <firstname.lastname@example.org>