okay. It worked to make my 3'rd party library dynamic. Hopefully this will
help someone else in the future.
"Mathew" wrote in message
news:j1cs2t$j2f$1...@news.jpl.nasa.gov...
> This isn't exactly a Python question but maybe someone here has run into
> this.
>
> I have 2 extensions and they b
Wrap your 3rd party library with a Python interface module, and run all
calls from foo and goo through your interface.
On Thu, Aug 4, 2011 at 2:48 PM, Mathew wrote:
> more info. I have a large 3rd party library with a function that looks
> like
> this
> void dumbfunc() {
> static int statevar=0
more info. I have a large 3rd party library with a function that looks like
this
void dumbfunc() {
static int statevar=0;
++statevar;
if (startvar ==3) printf("I have been called 3 times\n");
}
and I have 2 extensions, foo,py goo.py,created with SWIG, and the both make
calls to dumbfunc. In cre
On Thu, Aug 4, 2011 at 2:19 AM, Mathew wrote:
> I have 2 extensions and they both access a function in a (static) library.
> The function maintains state information using a static variable.
If your extensions are DLLs and they're both linking to the same
static library, you should have two indep
Mathew, 04.08.2011 03:19:
This isn't exactly a Python question but maybe someone here has run into
this.
I have 2 extensions
With "extensions", I assume you mean extension modules for the CPython
runtime that are written in C? It would help if you were more specific in
your problem descripti
In "Mathew" writes:
> This isn't exactly a Python question but maybe someone here has run into
> this.
> I have 2 extensions and they both access a function in a (static) library.
> The function maintains state information using a static variable.
I'm not sure what you mean by "extension", b
This isn't exactly a Python question but maybe someone here has run into
this.
I have 2 extensions and they both access a function in a (static) library.
The function maintains state information using a static variable.
This doesn't work. When one of my extensions changes the variable value, th