print or write on a text file ?

Franck Ditter franck at ditter.org
Fri Sep 28 14:42:03 EDT 2012


Hi !
Here is Python 3.3
Is it better in any way to use print(x,x,x,file='out')
or out.write(x) ? Any reason to prefer any of them ?
There should be a printlines, like readlines ?
Thanks,

    franck



More information about the Python-list mailing list