Re: at-exit-thread

2008-03-01 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > On Feb 29, 1:55 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] schrieb: >> >>> The Python main interpreter has an at-exit list of callables, which >>> are called when the interpreter exits. Can threads have one? What's >>> involved, or is the b

Re: at-exit-thread

2008-02-29 Thread Gabriel Genellina
En Fri, 29 Feb 2008 18:12:13 -0200, <[EMAIL PROTECTED]> escribió: > On Feb 29, 1:55 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] schrieb: >> >> > The Python main interpreter has an at-exit list of callables, which >> > are called when the interpreter exits.  Can threads h

Re: at-exit-thread

2008-02-29 Thread castironpi
On Feb 29, 4:34 pm, Preston Landers <[EMAIL PROTECTED]> wrote: > On Feb 29, 2:12 pm, [EMAIL PROTECTED] wrote: > > > If a thread adds an object it creates to a nonlocal > > collection, such as a class-static set, does it have to maintain a > > list of all such objects, just to get the right ones de

Re: at-exit-thread

2008-02-29 Thread Preston Landers
On Feb 29, 2:12 pm, [EMAIL PROTECTED] wrote: > If a thread adds an object it creates to a nonlocal > collection, such as a class-static set, does it have to maintain a > list of all such objects, just to get the right ones destroyed on > completion?   Yes. > Processes destroy their garbage hassle

Re: at-exit-thread

2008-02-29 Thread castironpi
On Feb 29, 2:12 pm, [EMAIL PROTECTED] wrote: > On Feb 29, 1:55 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > > > > > > > [EMAIL PROTECTED] schrieb: > > > > The Python main interpreter has an at-exit list of callables, which > > > are called when the interpreter exits.  Can threads have one?  

Re: at-exit-thread

2008-02-29 Thread castironpi
On Feb 29, 1:55 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] schrieb: > > > The Python main interpreter has an at-exit list of callables, which > > are called when the interpreter exits.  Can threads have one?  What's > > involved, or is the best way merely to subclass Thre

Re: at-exit-thread

2008-02-29 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > The Python main interpreter has an at-exit list of callables, which > are called when the interpreter exits. Can threads have one? What's > involved, or is the best way merely to subclass Thread? Is that some sort of trick-question? class MyThread(Thread): def

at-exit-thread

2008-02-29 Thread castironpi
The Python main interpreter has an at-exit list of callables, which are called when the interpreter exits. Can threads have one? What's involved, or is the best way merely to subclass Thread? -- http://mail.python.org/mailman/listinfo/python-list