Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #30425

print or write on a text file ?

From Franck Ditter <franck@ditter.org>
Newsgroups comp.lang.python
Subject print or write on a text file ?
Organization SN distribution
Date 2012-09-28 20:42 +0200
Message-ID <franck-20D159.20420228092012@news.free.fr> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

print or write on a text file ? Franck Ditter <franck@ditter.org> - 2012-09-28 20:42 +0200
  Re: print or write on a text file ? Wayne Werner <wayne@waynewerner.com> - 2012-09-28 16:33 -0500
  Re: print or write on a text file ? Terry Reedy <tjreedy@udel.edu> - 2012-09-28 20:41 -0400
  Re: print or write on a text file ? nn <pruebauno@latinmail.com> - 2012-10-01 10:22 -0700

csiph-web