From: Edward C. J. <edc...@er...> - 2004-01-16 15:51:17
|
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 |