Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #92934 > unrolled thread
| Started by | Cecil Westerhof <Cecil@decebal.nl> |
|---|---|
| First post | 2015-06-21 09:56 +0200 |
| Last post | 2015-06-21 14:38 +0200 |
| Articles | 7 — 3 participants |
Back to article view | Back to comp.lang.python
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
| From | Cecil Westerhof <Cecil@decebal.nl> |
|---|---|
| Date | 2015-06-21 09:56 +0200 |
| Subject | No ‘from __future__ import print_function’ in latest jython |
| Message-ID | <87zj3tpk96.fsf@Equus.decebal.nl> |
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. ;-)
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
[toc] | [next] | [standalone]
| From | Cecil Westerhof <Cecil@decebal.nl> |
|---|---|
| Date | 2015-06-21 10:09 +0200 |
| Message-ID | <87vbehpjoh.fsf@Equus.decebal.nl> |
| In reply to | #92934 |
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
[toc] | [prev] | [next] | [standalone]
| From | Tony the Tiger <tony@tiger.invalid> |
|---|---|
| Date | 2015-07-09 20:40 +0000 |
| Message-ID | <5%Anx.3611$JE3.1682@fx44.am4> |
| In reply to | #92939 |
On Sun, 21 Jun 2015 10:09:02 +0200, Cecil Westerhof wrote:
>> happier I am. ;-)
>
> My bad, I started the old version instead of the latest when I tested
> this. Sorry for the noise.
No noise has two s's. One noise has one s more than no noise. Therefore
spell noise with three s-es.
Huh?
/Grrr
--
___ ___
(\_--_/) | _ ._ _|_|_ _ |o _ _ ._
( 9 9 ) |(_)| |\/ |_| |(/_ ||(_|(/_|
stripes are forever - as overripe ferrets
[toc] | [prev] | [next] | [standalone]
| From | Laura Creighton <lac@openend.se> |
|---|---|
| Date | 2015-06-21 11:05 +0200 |
| Message-ID | <mailman.671.1434877523.13271.python-list@python.org> |
| In reply to | #92934 |
Do you have Jython 2.7 released a few weeks ago? Laura
[toc] | [prev] | [next] | [standalone]
| From | Cecil Westerhof <Cecil@decebal.nl> |
|---|---|
| Date | 2015-06-21 12:21 +0200 |
| Message-ID | <87h9q18ir4.fsf@Equus.decebal.nl> |
| In reply to | #92943 |
On Sunday 21 Jun 2015 11:05 CEST, Laura Creighton wrote: > Do you have Jython 2.7 released a few weeks ago? Yes, but I was dumb enough to start the old version when I did this. :-( There is still one problem: ====================================================================== >>> from __future__ import print_function >>> print() () ====================================================================== While it should be: ====================================================================== >>> from __future__ import print_function >>> print() ====================================================================== But I think I can live with it for the moment. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof
[toc] | [prev] | [next] | [standalone]
| From | Laura Creighton <lac@openend.se> |
|---|---|
| Date | 2015-06-21 12:54 +0200 |
| Message-ID | <mailman.675.1434884076.13271.python-list@python.org> |
| In reply to | #92950 |
In a message of Sun, 21 Jun 2015 12:21:03 +0200, Cecil Westerhof writes: >On Sunday 21 Jun 2015 11:05 CEST, Laura Creighton wrote: > >> Do you have Jython 2.7 released a few weeks ago? > >Yes, but I was dumb enough to start the old version when I did this. >:-( > >There is still one problem: >====================================================================== >>>> from __future__ import print_function >>>> print() >() >====================================================================== > >While it should be: >====================================================================== >>>> from __future__ import print_function >>>> print() > >====================================================================== > >But I think I can live with it for the moment. > >-- >Cecil Westerhof >Senior Software Engineer >LinkedIn: http://www.linkedin.com/in/cecilwesterhof >-- >https://mail.python.org/mailman/listinfo/python-list That's a bug. Go add it to http://bugs.jython.org/issue2007 so when the bugs with print_function get fixed, they will be sure to fix that one too. Laura
[toc] | [prev] | [next] | [standalone]
| From | Cecil Westerhof <Cecil@decebal.nl> |
|---|---|
| Date | 2015-06-21 14:38 +0200 |
| Message-ID | <87zj3t6xt9.fsf@Equus.decebal.nl> |
| In reply to | #92952 |
On Sunday 21 Jun 2015 12:54 CEST, Laura Creighton wrote: > In a message of Sun, 21 Jun 2015 12:21:03 +0200, Cecil Westerhof > writes: >> On Sunday 21 Jun 2015 11:05 CEST, Laura Creighton wrote: >> >>> Do you have Jython 2.7 released a few weeks ago? >> >> Yes, but I was dumb enough to start the old version when I did >> this. :-( >> >> There is still one problem: >> ====================================================================== >>>>> from __future__ import print_function >>>>> print() >> () >> ====================================================================== >> >> While it should be: >> ====================================================================== >>>>> from __future__ import print_function >>>>> print() >> >> ====================================================================== >> >> But I think I can live with it for the moment. >> >> -- >> Cecil Westerhof >> Senior Software Engineer >> LinkedIn: http://www.linkedin.com/in/cecilwesterhof >> -- >> https://mail.python.org/mailman/listinfo/python-list > > That's a bug. Go add it to > http://bugs.jython.org/issue2007 so when the bugs with > print_function get fixed, they will be sure to fix that one too. Done. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web