Message9230

Author jeff.allen
Recipients jeff.allen
Date 2014-12-13.09:54:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1418464445.94.0.596166729452.issue2236@psf.upfronthosting.co.za>
In-reply-to
Content
The "as" keyword is not accepted in a try ... except construct. This should be available from Python 2.6.

>>> try:
...     f = open("x.tmp")
... except IOError as ex:
  File "<stdin>", line 3
    except IOError as ex:
                        ^
SyntaxError: mismatched input '<EOF>' expecting INDENT

A comma is acceptable to Jython for the same purpose.

Possibly an easy grammar fix since the code generation does not have to change. A test is clearly missing.
History
Date User Action Args
2014-12-13 09:54:06jeff.allensetrecipients: + jeff.allen
2014-12-13 09:54:05jeff.allensetmessageid: <1418464445.94.0.596166729452.issue2236@psf.upfronthosting.co.za>
2014-12-13 09:54:05jeff.allenlinkissue2236 messages
2014-12-13 09:54:05jeff.allencreate