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/", line 1131

                except IOError as e:


SyntaxError: invalid syntax

Jeff Allen <> ezt írta (időpont: 2018. szept. 20., Cs, 7:51):

Jeff Allen <> added the comment:

That's a very old Jython.

The yield keyword in Python 2.2 was a __future__ feature. (

I've seen documentation somewhere on wlst that led me to believe 2.7.0 is supplied. Is your maybe coming from a 2.7 library? Leading to the hope that there's a 2.7 implementation around?

Jython tracker <>