writing to a file
Diez B. Roggisch
deets at nospam.web.de
Wed May 30 07:41:41 EDT 2007
montyphyton at gmail.com schrieb:
> 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
You should look at the mmap-module.
Diez
More information about the Python-list
mailing list