Quick way to calculate lines of code/comments in a collection of Python scripts?

MrJean1 MrJean1 at gmail.com
Mon Oct 24 16:20:12 EDT 2016


On Wednesday, October 5, 2016 at 1:57:14 PM UTC-4, Malcolm Greene wrote:
> Looking for a quick way to calculate lines of code/comments in a
> collection of Python scripts. This isn't a LOC per day per developer
> type analysis - I'm looking for a metric to quickly judge the complexity
> of a set of scripts I'm inheriting.
> 
> Thank you,
> Malcolm

Here is a basic LOC counter for Python source files

<https://code.activestate.com/recipes/580709-lines-of-code-loc/

/Jean



More information about the Python-list mailing list