Re: [Python-Dev] Eliminating f_tstate

2007-01-22 Thread Delaney, Timothy (Tim)
"Martin v. Löwis" wrote: > For Python 2.5, for compatibility, it probably has to remain > where it is, and only PyTraceBack_Here should stop using it. > As a consequence, a generator .send() makes exceptions > occur in the current thread, not in the thread where the > generator was created. > > W

Re: [Python-Dev] Eliminating f_tstate

2007-01-22 Thread Brett Cannon
On 1/22/07, Michael Hudson <[EMAIL PROTECTED]> wrote: > "Martin v. Löwis" <[EMAIL PROTECTED]> writes: > > > Bug #1579370 reports a crash when accessing the thread state of > > a terminated thread, when releasing a generator object. > > > > In analysing the problem, I found that f_tstate doesn't hav

Re: [Python-Dev] Eliminating f_tstate

2007-01-22 Thread Michael Hudson
"Martin v. Löwis" <[EMAIL PROTECTED]> writes: > Bug #1579370 reports a crash when accessing the thread state of > a terminated thread, when releasing a generator object. > > In analysing the problem, I found that f_tstate doesn't have much > utility: it is used in very few places, and in these pla

[Python-Dev] Eliminating f_tstate

2007-01-21 Thread Martin v. Löwis
Bug #1579370 reports a crash when accessing the thread state of a terminated thread, when releasing a generator object. In analysing the problem, I found that f_tstate doesn't have much utility: it is used in very few places, and in these places, it might be as good or better to use the *current*