Issue2050

classification
Title: SyntaxError: mismatched input 'as' expecting COLON
Type: crash Severity: major
Components: Library Versions: Jython 2.5
Milestone:
process
Status: closed Resolution: invalid
Dependencies: Superseder:
Assigned To: Nosy List: amak, cleanAir, jeff.allen, zyasoft
Priority: Keywords:

Created on 2013-05-13.13:29:17 by cleanAir, last changed 2014-05-04.20:13:58 by zyasoft.

Messages
msg8013 (view) Author: cleanAir (cleanAir) Date: 2013-05-13.13:29:17
The SyntaxError: 
mismatched input 'as' expecting COLON
appears in line 319 of the lib file: "/usr/lib64/python2.7/ssl.py".

When its called by the in line 17 of the libcloud file: "/usr/lib/python2.7/site-packages/libcloud/common/base.py".

Result: Its impossible to use the libcloud.apache.org within the jython interpreter.
msg8020 (view) Author: Jeff Allen (jeff.allen) Date: 2013-05-17.23:27:26
There is no "except ... as" clause in Python until 2.6. (The "as" was a comma in 2.5.)

Jython comes with those Python libraries that have been tested to work, or it comes with a modified version that is supported. Of course, you're welcome to try unsupported Python libraries. The Python 2.7 ssl module has not been ported by us to Jython 2.7: a very small substitute is supplied.
msg8328 (view) Author: Jim Baker (zyasoft) Date: 2014-05-04.20:13:58
Fixed in 2.7
History
Date User Action Args
2014-05-04 20:13:58zyasoftsetstatus: open -> closed
resolution: invalid
messages: + msg8328
nosy: + zyasoft
2013-05-17 23:27:27jeff.allensetnosy: + jeff.allen, amak
messages: + msg8020
2013-05-17 22:56:19jeff.allenlinkissue2043 superseder
2013-05-13 13:29:51cleanAirsettype: crash
2013-05-13 13:29:17cleanAircreate