Dumb Q #1
Grant Edwards
grante at visi.com
Tue Jan 28 11:29:09 EST 2003
In article <mailman.1043758549.8656.python-list at python.org>, Andy Jewell wrote:
> for record in records[:]:
>
> 2) Rewrite the records list back to the file. Modifying the records /list/
> merely changes the copy in memory.
Writing to a file like /etc/passwd is generally considered "A
Bad Thing". When you want to change a critical (and "live")
file whose corruption will render your system inoperable,
always use a temporary file and then rename it.
--
Grant Edwards grante Yow! Is this where people
at are HOT and NICE and they
visi.com give you TOAST for FREE??
More information about the Python-list
mailing list