Daemon loses __file__ reference after a while.

Ian Kelly ian.g.kelly at gmail.com
Tue Jul 24 22:08:43 CEST 2012


On Tue, Jul 24, 2012 at 1:32 PM, Paul Rubin <no.email at nospam.invalid> wrote:
> Dieter Maurer <dieter at handshake.de> writes:
>> I have only one vague idea: should something try to terminate the
>> process, modules would start to lose their variables during shutdown.
>
> That happens all the time with multi-threaded programs, because the
> shutdown is happening concurrently with other threads doing stuff.  Are
> there threads in this particular program?

It also comes up in single-threaded programs that use finalizers
(__del__ methods).  At the time an object is finalized, many globals
might already be gone.



More information about the Python-list mailing list