String find and replace

Erik Max Francis max at alcyone.com
Wed Aug 27 02:12:27 CEST 2003


Geoff Gerrietts wrote:

> You might consider the fragment below, instead. It's a couple lines
> longer, but safer (your .close() happens exactly when you want it to)
> ...

[nitpick]  Well, only if no errors occur while reading the file.

-- 
   Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
 __ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/  \ The basis of optimism is sheer terror.
\__/  Oscar Wilde




More information about the Python-list mailing list