Re: [Python-Dev] pystate.c changes for Python 2.4.2

2006-01-25 Thread Gabriel Becedillas
Thanks to everyone for the great support. I've submitted a patch for this: http://sourceforge.net/tracker/index.php?func=detail&aid=1413181&group_id=5470&atid=305470. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listi

Re: [Python-Dev] pystate.c changes for Python 2.4.2

2006-01-20 Thread Tim Peters
[Tim] >> ... >> As a result, it so happens that core Python never uses the original >> PyThreadState_Delete() anymore, except when Py_NewInterpreter() has >> to throw away the brand new thread state it created because it turns out >> it can't create a new interpreter. [Michael] > Um, PyThreadState

Re: [Python-Dev] pystate.c changes for Python 2.4.2

2006-01-20 Thread Michael Hudson
Tim Peters <[EMAIL PROTECTED]> writes: > [Gabriel Becedillas] >> Can anybody tell me if the patch I suggested is ok ? >> That will be to add the following code at the end of PyThreadState_Delete: >> >> if (autoTLSkey && PyThread_get_key_value(autoTLSkey) == tstate) >> PyThread_delete_key_valu

Re: [Python-Dev] pystate.c changes for Python 2.4.2

2006-01-19 Thread Tim Peters
[Gabriel Becedillas] > Can anybody tell me if the patch I suggested is ok ? > That will be to add the following code at the end of PyThreadState_Delete: > > if (autoTLSkey && PyThread_get_key_value(autoTLSkey) == tstate) > PyThread_delete_key_value(autoTLSkey); It needs a little work, but I t

Re: [Python-Dev] pystate.c changes for Python 2.4.2

2006-01-16 Thread Gabriel Becedillas
Gabriel Becedillas wrote: > Michael Hudson wrote: >> Gabriel Becedillas <[EMAIL PROTECTED]> writes: >> >> >>> Hi, >>> At the company I work for, we've embedded Python in C++ application >>> we develop. Since our upgrade to Python 2.4.2 from 2.4.1 we started >>> hitting Py_FatalError("Invalid thre

Re: [Python-Dev] pystate.c changes for Python 2.4.2

2006-01-15 Thread Gabriel Becedillas
Michael Hudson wrote: > Gabriel Becedillas <[EMAIL PROTECTED]> writes: > > >>Hi, >>At the company I work for, we've embedded Python in C++ application we >>develop. Since our upgrade to Python 2.4.2 from 2.4.1 we started hitting >>Py_FatalError("Invalid thread state for this thread") when using

Re: [Python-Dev] pystate.c changes for Python 2.4.2

2006-01-13 Thread Michael Hudson
Gabriel Becedillas <[EMAIL PROTECTED]> writes: > Hi, > At the company I work for, we've embedded Python in C++ application we > develop. Since our upgrade to Python 2.4.2 from 2.4.1 we started hitting > Py_FatalError("Invalid thread state for this thread") when using debug > builds. > We use bo

Re: [Python-Dev] pystate.c changes for Python 2.4.2

2006-01-12 Thread Aahz
On Thu, Jan 12, 2006, Gabriel Becedillas wrote: > > If I add this code at the end of PyThreadState_Delete: > > if (autoTLSkey && PyThread_get_key_value(autoTLSkey) == tstate) > PyThread_delete_key_value(autoTLSkey); > > then everything works fine. > Could you please confirm if this is a bug

[Python-Dev] pystate.c changes for Python 2.4.2

2006-01-12 Thread Gabriel Becedillas
Hi, At the company I work for, we've embedded Python in C++ application we develop. Since our upgrade to Python 2.4.2 from 2.4.1 we started hitting Py_FatalError("Invalid thread state for this thread") when using debug builds. We use both multiple interpreters and thread states. I think the pro