print(f) for files .. and is print % going away?

Duncan Booth duncan.booth at invalid.invalid
Thu Apr 30 14:44:13 CEST 2009

Esmail <ebonak at> wrote:

> (for some reason I can't get the from __future__ import
> to work,
> >>> from __future__ import print_function
>    File "<stdin>", line 1
> SyntaxError: future feature print_function is not defined
> but I am probably making some silly mistake, plus
> I have been meaning to find out more about this too, so
> this is a good chance to learn something new).
You can only use the print function on 2.6 and later. If you have an older 
version of Python then you'll get that error.

Duncan Booth

More information about the Python-list mailing list