Issue1533

classification
Title: Jython assumes the __future__ with statement is always enabled
Type: Severity: normal
Components: Core Versions: Jython 2.5
Milestone:
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: fwierzbicki Nosy List: fwierzbicki, ssteiner, thobes, verterok, zyasoft
Priority: low Keywords:

Created on 2010-01-06.05:27:23 by verterok, last changed 2014-06-19.07:59:35 by zyasoft.

Messages
msg5409 (view) Author: Guillermo Gonzalez (verterok) Date: 2010-01-06.05:27:22
Using r6957, and trying to run twisted test suite I get the following error:

Traceback (most recent call last):
  File "bin/trial", line 21, in <module>
    from twisted.scripts.trial import run
  File "/Users/guillermo/Projects/Twisted/jython/twisted/scripts/trial.py", line 10, in <module>
    from twisted.application import app
  File "/Users/guillermo/Projects/Twisted/jython/twisted/application/app.py", line 13, in <module>
    from twisted.application import service, reactors
  File "/Users/guillermo/Projects/Twisted/jython/twisted/application/service.py", line 20, in <module>
    from twisted.python import components
  File "/Users/guillermo/Projects/Twisted/jython/twisted/python/components.py", line 36, in <module>
    from zope.interface.adapter import AdapterRegistry
  File "/Users/guillermo/Projects/Twisted/jython/zope_interface/build/zope/interface/adapter.py", line 195
    for with, objects in v.iteritems():
       ^
SyntaxError: no viable alternative at input 'with'
msg5412 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2010-01-06.15:34:27
This is a parser limitation. We need to be able to process "from __future__" and turn on and off parser errors accordingly - we don't do that now.
msg5416 (view) Author: simon steiner (ssteiner) Date: 2010-01-06.19:26:50
You can upgrade zope to avoid this since this code wont work in python 2.6
msg8746 (view) Author: Jim Baker (zyasoft) Date: 2014-06-19.07:59:35
Not going to fix this now that we are focused on 2.7
History
Date User Action Args
2014-06-19 07:59:35zyasoftsetstatus: open -> closed
resolution: accepted -> out of date
messages: + msg8746
nosy: + zyasoft
2013-02-25 18:23:16fwierzbickisetpriority: low
versions: + Jython 2.5
2010-01-06 19:26:50ssteinersetnosy: + ssteiner
messages: + msg5416
2010-01-06 15:34:28fwierzbickisetassignee: fwierzbicki
resolution: accepted
messages: + msg5412
nosy: + fwierzbicki, thobes
2010-01-06 05:27:23verterokcreate