Re: fork after creating temporary file using NamedTemporaryFile

2008-07-16 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Sebastian "lunar" Wiesner wrote: > Relying on the destructor is *always* a bad idea, you should always > close files explicitly! There shouldn't be any problem with files opened read-only. -- http://mail.python.org/mailman/listinfo/python-list

Re: fork after creating temporary file using NamedTemporaryFile

2008-07-15 Thread Sebastian "lunar" Wiesner
[EMAIL PROTECTED] <[EMAIL PROTECTED]>: > When I create temporary file using the tempfile module, and forkI) > later on in my program, I always see errors when the program exits. Is > this because the child process deletes temp file? > Here's a stripped down version of my script that exhibits this

fork after creating temporary file using NamedTemporaryFile

2008-07-15 Thread rparimi
Hello pythoners, When I create temporary file using the tempfile module, and forkI) later on in my program, I always see errors when the program exits. Is this because the child process deletes temp file? Here's a stripped down version of my script that exhibits this problem: #!/usr/bin/python i