Robin Becker schrieb:
> What is worrying is that in the extension init we're creating an
> exception and version string etc and holding a pointer to them in C; is
> it safe to use the same exception in different interpeters?
It is safe as long as the base exception classes are also shared across
Martin v. Löwis wrote:
> Robin Becker schrieb:
>> Is there a simple/cheap way for C code to cache these sorts of module
>> level globals on a per interpreter basis? Is there even a way to tell
>> which interpreter I'm being called in?
>
> There is no cheap way to add to the interpreter state. As C
Robin Becker schrieb:
> Is there a simple/cheap way for C code to cache these sorts of module
> level globals on a per interpreter basis? Is there even a way to tell
> which interpreter I'm being called in?
There is no cheap way to add to the interpreter state. As Chris Mellon
explains, you can us
Chris Mellon wrote:
> I'm not that familiar with
> mod_python but I'm surely each python interpreter is in a different
> thread (if not process) than the others.
No.
In mod_python there can be multiple distinct interpreter instances in
each Apache child process. If using a multithreaded Apache M
On 12/28/06, Robin Becker <[EMAIL PROTECTED]> wrote:
> Robin Becker wrote:
> > Chris Mellon wrote:
> >> On 12/28/06, Robin Becker <[EMAIL PROTECTED]> wrote:
> >>> As part of some django usage I need to get some ReportLab C extensions
> >>> into a
> >>> state where they can be safely used with mod_
Robin Becker wrote:
> Chris Mellon wrote:
>> On 12/28/06, Robin Becker <[EMAIL PROTECTED]> wrote:
>>> As part of some django usage I need to get some ReportLab C extensions into
>>> a
>>> state where they can be safely used with mod_python.
> .
>> Just off the top of my head, I'd think tha
Chris Mellon wrote:
> On 12/28/06, Robin Becker <[EMAIL PROTECTED]> wrote:
>> As part of some django usage I need to get some ReportLab C extensions into a
>> state where they can be safely used with mod_python.
.
>>
>
> Just off the top of my head, I'd think that using thread-local storag
On 12/28/06, Robin Becker <[EMAIL PROTECTED]> wrote:
> As part of some django usage I need to get some ReportLab C extensions into a
> state where they can be safely used with mod_python.
>
> Unfortunately we have C code that seems incompatible with mod_python and I'm
> looking for ways to improve