[Numpy-discussion] Tabs in numarray code

Edward C. Jones edcjones at erols.com
Fri Jan 16 07:52:00 CST 2004


What are the policies about tab characters in numarray Python and C 
code? What are the policies about indentation in numarray Python and C code?

The following small program found a bunch of tabs in numarray code:
--------
#! /usr/local/bin/python

import os

topdir = '/usr/local/src/numarray-0.8/'
for dirpath, dirnames, filenames in os.walk(topdir):
    for name in filenames:
        if name.endswith('.py'):
            fullname = os.path.join(dirpath, name)
            lines = file(fullname, 'r').read().splitlines()
            for i, line in enumerate(lines):
                if '\t' in line:
                    print fullname[len(topdir):], i+1, line






More information about the Numpy-discussion mailing list