[SciPy-user] problem building svn scipy
Mon Apr 28 15:28:24 CDT 2008
On Mon, Apr 28, 2008 at 3:11 PM, Damian Eads <firstname.lastname@example.org> wrote:
> Hi John,
> Thanks for the fix. It is possible that an earlier version of gcc 3.4
> collapsed underscore prefixes on variable names.
> I was not aware there was a Scipy style for C code--just an unwritten
> understanding that the C code be cleanly written. I have structured my
> code so that the implementation of an algorithm goes in a function in
> one C file (hierarchy.c), its Python-C wrapper goes in another C file
> (hierarchy_wrap.c), and argument checking and array allocation happens
> in a Python function (hierarchy.py). I have tried to keep my argument
> names consistent in each of these files. If an argument is called X in
> Python, its corresponding PyArrayObject is called _X in C, and the
> C-array buffer is called X. This consistency really helps development as
> well as avoiding bugs.
I use a similar convention, but instead of "_X", I tend to use "pyX".
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the SciPy-user