Issue2050

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

Created on 2013-05-13.13:29:17 by cleanAir, last changed 2013-05-17.23:27:27 by jeff.allen.

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.
History
Date User Action Args
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