[Nipy-devel] Code style

Tim Leslie tim.leslie at gmail.com
Mon Jun 26 05:27:54 CDT 2006


Hi All,

I've noticed in some files (reference/axis.py for e.g.) that there is
a general style being used of

###################
class C:

    #-------------------------------------
    def __init__(self):
        pass

    #-------------------------------------
    def foo(self):
        pass

This use of "######" and "#-------" is used in some files and not
other. Most of the files in the reference package for e.g. use it,
while most of those in the fmri package do not.

What with the first rule of code style being consistency, I thought it
might be a good idea to either use these marking everywhere or not at
all. IMHO the code looks tidier without them, but it doesn't
especially bother me. If there's a general opinion on which option is
better I'd be happy to go through and make the changes where needed.

Cheers,

Tim Leslie



More information about the Nipy-devel mailing list