Message12112

Author Tig
Recipients Tig, jeff.allen, stefan.richthofer
Date 2018-09-20.06:02:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAK3_EhiLYU_C7MiEO2zZL_LpSdraa==sUd2Fjk51KSZZVAQ0hA@mail.gmail.com>
In-reply-to <1537422689.93.0.956365154283.issue2704@psf.upfronthosting.co.za>
Content
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>
> _______________________________________
>
Files
File name Uploaded
unnamed Tig, 2018-09-20.06:02:28
History
Date User Action Args
2018-09-20 06:02:29Tigsetrecipients: + Tig, jeff.allen, stefan.richthofer
2018-09-20 06:02:28Tiglinkissue2704 messages
2018-09-20 06:02:28Tigcreate