readability statistics

Guido Goldstein clpy at a-nugget.de
Tue Nov 26 16:08:01 EST 2002


Hi!

On Tue, 26 Nov 2002 11:34:19 -0800
  Brian Quinlan <brian at sweetapp.com> wrote:
> > Does anybody know where I can find a module
> > which calculates some python code readability statistics.
> > Like for example:
> > % comment lines.
> > average line length
> > average module number of lines
> > etc...
> 
> I don't know if such a utility already exists or not, but you could
> probably write one in less than an hour. Look at the tokenize module. 

There is at least this:
  http://starship.python.net/crew/gherman/playground/pycount/

Should be a good starting point.

HIH
  Guido



More information about the Python-list mailing list