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

Esmail ebonak at hotmail.com
Thu Apr 30 07:09:58 EDT 2009


Hello all,

I use the print method with % for formatting my output to
the console since I am quite familiar with printf from my
C days, and I like it quite well.

I am wondering if there is a way to use print to write
formatted output to files?

Also, it seems like I read that formatting with print is
going away eventually and we should start using something
else? Is that true and if so, what?

Thanks,
Esmail




More information about the Python-list mailing list