[Tutor] overwriting input file

Noufal Ibrahim noufal at nibrahim.net.in
Wed Feb 25 14:27:39 CET 2009


A.T.Hofkamp wrote:

> write the output to a temporary file while reading the input, then 
> rename the temporary file.

This I believe is what the fileinput module does when you use it with 
the inplace parameter set to 1.


-- 
~noufal
http://nibrahim.net.in/


More information about the Tutor mailing list