"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
>
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
How does one normally make a Python extension module that has some parts
in Python and some functions in C share globals between the Python and C
functions? Will that approach work with Pyrex?
I have written a Python module that uses some C functions. I wrote the
module in two parts, one Pyth