writing to a file

montyphyton at gmail.com montyphyton at gmail.com
Wed May 30 05:02:38 EDT 2007


as i understand there are two ways to write data to a file: using
f.write("foo") and print >>f, "foo".
what i want to know is which one is faster (if there is any difference
in speed) since i'm working with very large files. of course, if there
is any other way to write data to a file, i'd love to hear about it




More information about the Python-list mailing list