Re: Mutual module imports

2005-10-17 Thread George Sakkis
"Tony Nelson" <[EMAIL PROTECTED]> wrote: > [snipped] > > I have written a Python module that uses some C functions. I wrote the > module in two parts, one Python, one Pyrex (C). They need to share some > globals. > > [snipped] > > Now the Python module imports the Pyrex module and just shoves >

Re: Mutual module imports

2005-10-17 Thread Tuvas
The trick is via something called Extending. Pyrex just makes extending a bit easier, but, depending on the complexity of the function, it might be easier just to extend it yourself. Basically you make a function that translates python into C. There are some instructions on the Python website, http