#913 2.6 grammar not respecting __future__:print_function

1.4.5
open
Editor (491)
5
2009-05-08
2009-05-08
No

The following code will cause PyDev to throw a syntax error saying "Syntax error while detecting tuple". Running the script works just fine, displaying the output "hello, world!".

from __future__ import print_function

print('hello', end=', ')
print('world', end='!')

Discussion

  • Matthew Gast

    Matthew Gast - 2009-05-08
    • summary: print asPython 2.6 grammar sees 3.0 style syntax error --> Python 2.6 grammar sees 3.0 style syntax error
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2009-05-08
    • summary: Python 2.6 grammar sees 3.0 style syntax error --> 2.6 grammar not respecting future:print_function
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks