Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #92939

Re: No ‘from __future__ import print_function’ in latest jython

From Cecil Westerhof <Cecil@decebal.nl>
Newsgroups comp.lang.python
Subject Re: No ‘from __future__ import print_function’ in latest jython
Date 2015-06-21 10:09 +0200
Organization Decebal Computing
Message-ID <87vbehpjoh.fsf@Equus.decebal.nl> (permalink)
References <87zj3tpk96.fsf@Equus.decebal.nl>

Show all headers | View raw


On Sunday 21 Jun 2015 09:56 CEST, Cecil Westerhof wrote:

> When I execute in the latest Jython:
> from __future__ import print_function
> I get:
> Traceback (innermost last):
> (no code object) at line 0
> File "<console>", line 1
> SyntaxError: future feature print_function is not defined
>
> This is not implemented in the latest jython? I prefer to keep all
> my code as far as possible the same. The closer I get to DRY, the
> happier I am. ;-)

My bad, I started the old version instead of the latest when I tested
this. Sorry for the noise.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

No ‘from __future__ import print_function’ in latest jython Cecil Westerhof <Cecil@decebal.nl> - 2015-06-21 09:56 +0200
  Re: No ‘from __future__ import print_function’ in latest jython Cecil Westerhof <Cecil@decebal.nl> - 2015-06-21 10:09 +0200
    Re: No ‘from __future__ import print_function’ in latest jython Tony the Tiger <tony@tiger.invalid> - 2015-07-09 20:40 +0000
  Re: No ‘from __future__ import print_function’ in latest jython Laura Creighton <lac@openend.se> - 2015-06-21 11:05 +0200
    Re: No ‘from __future__ import print_function’ in latest jython Cecil Westerhof <Cecil@decebal.nl> - 2015-06-21 12:21 +0200
      Re: No ‘from __future__ import print_function’ in latest jython Laura Creighton <lac@openend.se> - 2015-06-21 12:54 +0200
        Re: No ‘from __future__ import print_function’ in latest jython Cecil Westerhof <Cecil@decebal.nl> - 2015-06-21 14:38 +0200

csiph-web