Issue1637

classification
Title: Syntax error by jython where CPython works OK
Type: crash Severity: normal
Components: Jythonc compiler Versions: 2.2.2
Milestone:
process
Status: closed Resolution: invalid
Dependencies: Superseder:
Assigned To: Nosy List: farzaneh, zyasoft
Priority: Keywords:

Created on 2010-07-26.15:12:11 by farzaneh, last changed 2010-07-26.16:06:27 by zyasoft.

Messages
msg5923 (view) Author: Farzaneh Sarafraz (farzaneh) Date: 2010-07-26.15:12:10
The following code compiles OK on CPython, but gives "SyntaxError: invalid syntax" on jython. The output of jython --version is
Jython 2.2.1 on java1.6.0_0

Code:

s = 'abc'
print "".join(i for i in s)
msg5924 (view) Author: Jim Baker (zyasoft) Date: 2010-07-26.16:06:26
Generator expressions are not supported as of Python 2.2/Jython 2.2. You need to use Jython 2.5.
History
Date User Action Args
2010-07-26 16:06:27zyasoftsetstatus: open -> closed
resolution: invalid
messages: + msg5924
nosy: + zyasoft
title: Syntac error by jython where CPython works OK -> Syntax error by jython where CPython works OK
2010-07-26 15:12:11farzanehcreate