Need a little parse help

Delaney, Timothy C (Timothy) tdelaney at avaya.com
Tue May 10 21:39:25 EDT 2005


Peter Hansen wrote:

> In my opinion, if the code fits on one screen and just reads stuff
> from one file and, maybe, writes to another, you can safely and with
                            ^^^^^^
> clean conscience ignore Mike's advice (but remember it for later!).

Remember, finalisers are not called when Python exits. So if you don't
explicitly close the file you are *writing* to, it may not be flushed
before being closed (by the OS because the process no longer exists).

Tim Delaney



More information about the Python-list mailing list