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

Esmail ebonak at hotmail.com
Thu Apr 30 08:58:12 EDT 2009


Duncan Booth wrote:
> Esmail <ebonak at hotmail.com> wrote:
> 
>> (for some reason I can't get the from __future__ import
>> to work,

> 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.

Ooops, yes, you wrote that and I tried with 2.6 under Windows
(my Ubuntu has 2.5) .. I must have typed something wrong when I
tried this with 2.6 because it's working fine now :-)

Thanks again Duncan,

Esmail




More information about the Python-list mailing list