Re: [Python-Dev] multiple interpreters and extension modules

2006-12-29 Thread Martin v. Löwis
Jeremy Kloth schrieb: 1) is subclassing Python classes in C as a static type supported? Even if they would be declared on the heap, they would be bound to the first loaded Python class. As you found out: no, this isn't supported. To work around, you can wrap the extension module with

Re: [Python-Dev] multiple interpreters and extension modules

2006-12-29 Thread Martin v. Löwis
Jeremy Kloth schrieb: I think you understand exactly what is happening. It is happening for good reasons. Rather than asking for a change in semantics, I recommend that you deal with it, either in your Python code, or in your extension. It's not likely to change. I don't believe I was

[Python-Dev] multiple interpreters and extension modules

2006-12-22 Thread Jeremy Kloth
[[ This may be somewhat c.l.p.-ish but I feel that this crossed into CPython development enough to merit posting here ]] I have received a bug report for 4Suite that involves a PyObject_IsInstance check failing for what appears to be the correct class, that is, the class names match. With

Re: [Python-Dev] multiple interpreters and extension modules

2006-12-22 Thread Josiah Carlson
Jeremy Kloth [EMAIL PROTECTED] wrote: [[ This may be somewhat c.l.p.-ish but I feel that this crossed into CPython development enough to merit posting here ]] I have received a bug report for 4Suite that involves a PyObject_IsInstance check failing for what appears to be the correct

Re: [Python-Dev] multiple interpreters and extension modules

2006-12-22 Thread Jeremy Kloth
On Friday 22 December 2006 5:02 pm, Josiah Carlson wrote: Jeremy Kloth [EMAIL PROTECTED] wrote: [[ This may be somewhat c.l.p.-ish but I feel that this crossed into CPython development enough to merit posting here ]] I have received a bug report for 4Suite that involves a

Re: [Python-Dev] multiple interpreters and extension modules

2006-12-22 Thread Guido van Rossum
I think you understand exactly what is happening. It is happening for good reasons. Rather than asking for a change in semantics, I recommend that you deal with it, either in your Python code, or in your extension. It's not likely to change. --Guido On 12/22/06, Jeremy Kloth [EMAIL PROTECTED]

Re: [Python-Dev] multiple interpreters and extension modules

2006-12-22 Thread Bob Ippolito
On 12/23/06, Jeremy Kloth [EMAIL PROTECTED] wrote: On Friday 22 December 2006 5:02 pm, Josiah Carlson wrote: Jeremy Kloth [EMAIL PROTECTED] wrote: [[ This may be somewhat c.l.p.-ish but I feel that this crossed into CPython development enough to merit posting here ]] I have received

Re: [Python-Dev] multiple interpreters and extension modules

2006-12-22 Thread Jeremy Kloth
On Friday 22 December 2006 7:54 pm, Bob Ippolito wrote: It's a whole lot more practical to just stop using mod_python and go for one of the other ways of exposing Python code to the internet. I bet you can get the same or better performance out of another solution anyway, and you'd save

Re: [Python-Dev] multiple interpreters and extension modules

2006-12-22 Thread Jeremy Kloth
On Friday 22 December 2006 7:16 pm, Guido van Rossum wrote: I think you understand exactly what is happening. It is happening for good reasons. Rather than asking for a change in semantics, I recommend that you deal with it, either in your Python code, or in your extension. It's not likely to

Re: [Python-Dev] multiple interpreters and extension modules

2006-12-22 Thread Bob Ippolito
On 12/23/06, Jeremy Kloth [EMAIL PROTECTED] wrote: On Friday 22 December 2006 7:54 pm, Bob Ippolito wrote: It's a whole lot more practical to just stop using mod_python and go for one of the other ways of exposing Python code to the internet. I bet you can get the same or better performance