Robert Bradshaw wrote: > On Jun 30, 2009, at 7:21 AM, Sébastien Barthélemy wrote: > >> Hello, >> >> after a months-long pause, I'm giving a new try to libcdd wrappers, >> and have a few related questions. >> >> first, is it possible to put compile-time definitions (DEF) outside >> the file? As an option to cython or to the Cython.Distutil? It would >> be useful to reflect #ifdef option in cython from the build script and >> avoid some redundancy. > > No, that's not possible. > >> second, is there a way to acces the C file descriptor of python file >> types from cython? I could not find it in cython documentation nor in >> python C-API reference. > > Yes, it's in the Python/C API refernce under "objects."
Be aware though at in some compilation environments this will fail though (e.g. Windows, with MinGW as compiler for Cython module but Visual C-compiled Python). -- Dag Sverre _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
