Yes I tried the jython 2.7 lib to add, because wlst doesn't have the argparse. I imported __future__ then the argparse...

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 <report@bugs.jython.org> ezt írta (időpont: 2018. szept. 20., Cs, 7:51):

Jeff Allen <ja.py@farowl.co.uk> 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 <report@bugs.jython.org>
<http://bugs.jython.org/issue2704>
_______________________________________