A question about C/API of python.

Jeff Davis jdavis at empires.org
Mon Sep 16 11:46:58 CEST 2002

Are you sure that you need to access a variable in the .so from the c 

If you really do, then I would recommend using shared memory. It's fast, 
pretty simple to use, and you don't have to worry about changing it to a 
python variable and then back again.


hpyhpy wrote:

> I use python to load C module(.so),then use C load python,like this:
> C(main)--->python--->C(.so)
> But now my trouble is :
> In C(main), I have some Global variable that depend on process of
> C(.so).
> But because python is in middle of them,so I can't use variable of
> C(.so) in C(main) dexterously.
> I see some C/API reference but it still pluzzle me.Anybody can tell me
> some advise?
> Thanks.
> --
> Posted via http://dbforums.com

More information about the Python-list mailing list