Path: csiph.com!usenet.pasdenom.info!poup.poupinou.org!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.python Subject: Re: No =?utf-8?Q?=E2=80=98from?= __future__ import =?utf-8?Q?prin?= =?utf-8?Q?t=5Ffunction=E2=80=99?= in latest jython Date: Sun, 21 Jun 2015 10:09:02 +0200 Organization: Decebal Computing Lines: 21 Message-ID: <87vbehpjoh.fsf@Equus.decebal.nl> References: <87zj3tpk96.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="528adfd6ad074c92fdc6a7f8fb9e23d8"; logging-data="17500"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+tZV33iLcM1/nzF86gG+xA1/oH3F+pDFU=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Homepage: http://www.decebal.nl/ Cancel-Lock: sha1:eRCCQtwfjBML9kV2uZ6/OfODbvM= sha1:O51MmDqHZOM3Fc1FzoFl/2ZF3IU= Xref: csiph.com comp.lang.python:92939 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 "", 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