On Jan 21, 8:12 am, Ben Finney <ben+pyt...@benfinney.id.au> wrote: > Michele Simionato <michele.simion...@gmail.com> writes: > > I need a small utility to count the lines of Python code in a > > directory, traversing subdirectories and ignoring comments and > > docstrings. I am sure there is already something doing that, what do > > you suggest? > > Any of the static code checkers (‘pylint’, ‘pyflakes’, etc.) would > already be doing this.
pylint does too many things, I want something fast that just counts the lines and can be run on thousands of files at once. cloc seems fine, I have just tried on 2,000 files and it gives me a report in just a few seconds. -- http://mail.python.org/mailman/listinfo/python-list