Programmer Bragging Rights

Saturday, May 6th, 2006

Have you ever finished writing a huge program, and now you want to know how many lines of code you wrote? Well, about halfway through writing a Python script to do this, I discovered that one already comes with Python that will give you these statistics categorized by file extension.

You can find this script at Tools\Scripts\ in your python installation. If you’re on linux, the script may not come with your distro’s packaged version, in a which case I’ve provided a zip of it.