making my extensions work together

John Gordon gordon at panix.com
Thu Aug 4 05:22:30 CEST 2011


In <j1cs2t$j2f$1 at news.jpl.nasa.gov> "Mathew" <myeates at jpl.nasa.gov> 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", but it might not be relevant.

Are these extensions, whatever they may be, part of the same program?
Or are they separate?

> This doesn't work. When one of my extensions changes the variable value, the 
> other extension does not see the change.

-- 
John Gordon                   A is for Amy, who fell down the stairs
gordon at panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"




More information about the Python-list mailing list