Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #26203

counting source lines (was: Is Python a commercial proposition ?)

From Stefan Behnel <stefan_ml@behnel.de>
Subject counting source lines (was: Is Python a commercial proposition ?)
Date 2012-07-29 19:49 +0200
References <HridnVeRSpKgw4jNnZ2dnUVZ8nidnZ2d@bt.com>
Newsgroups comp.lang.python
Message-ID <mailman.2697.1343584207.4697.python-list@python.org> (permalink)

Show all headers | View raw


lipska the kat, 29.07.2012 18:01:
> My most recent experience is with Java. The last project I was involved
> with included 6775 java source files containing 1,145,785 lines of code.
> How do I know this? because I managed to cobble together a python script
> that walks the source tree and counts the lines of code. It ignores block
> and line comments and whitespace lines so I'm fairly confident it's an
> accurate total. It doesn't include web interface files (mainly ..jsp and
> HTML) or configuration files (XML, properties files and what have you). In
> fact it was remarkably easy to do this in python

Just a comment on this part. An even easier way to count source lines is by
using the tool "SLOCCount". It also works with various languages.

Stefan

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Is Python a commercial proposition ? lipska the kat <lipska@yahoo.co.uk> - 2012-07-29 17:01 +0100
  Re: Is Python a commercial proposition ? Michael Hrivnak <mhrivnak@hrivnak.org> - 2012-07-29 13:13 -0400
    Re: Is Python a commercial proposition ? Bernd Waterkamp <Bernd-Waterkamp@web.de> - 2012-07-29 21:43 +0200
    Re: Is Python a commercial proposition ? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-07-29 23:47 +0200
  Re: Is Python a commercial proposition ? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-07-29 18:43 +0100
  counting source lines (was: Is Python a commercial proposition ?) Stefan Behnel <stefan_ml@behnel.de> - 2012-07-29 19:49 +0200
  Re: Is Python a commercial proposition ? Brandon Schaffer <bschaffer13@gmail.com> - 2012-07-29 11:50 -0600
  Re: Is Python a commercial proposition ? Tim Chase <python.list@tim.thechases.com> - 2012-07-29 13:28 -0500
  Re: Is Python a commercial proposition ? Andrew Cooper <amc96@cam.ac.uk> - 2012-07-29 19:34 +0100
  Re: Is Python a commercial proposition ? Stefan Behnel <stefan_ml@behnel.de> - 2012-07-29 20:38 +0200
  Re: Is Python a commercial proposition ? Terry Reedy <tjreedy@udel.edu> - 2012-07-29 15:38 -0400
  Re: Is Python a commercial proposition ? Aled Evans <aled.r.evans@gmail.com> - 2012-07-29 12:54 -0700
  Re: Is Python a commercial proposition ? Rodrick Brown <rodrick.brown@gmail.com> - 2012-07-29 20:12 -0400
  Re: Is Python a commercial proposition ? Andrew Berg <bahamutzero8825@gmail.com> - 2012-07-29 19:52 -0500
  Re: Is Python a commercial proposition ? Rodrick Brown <rodrick.brown@gmail.com> - 2012-07-29 22:31 -0400
    Re: Is Python a commercial proposition ? Paul Rubin <no.email@nospam.invalid> - 2012-07-29 20:03 -0700
    Re: Is Python a commercial proposition ? alex23 <wuwei23@gmail.com> - 2012-07-30 17:45 -0700
  Re: Is Python a commercial proposition ? Stefan Behnel <stefan_ml@behnel.de> - 2012-07-30 08:07 +0200
    Re: Is Python a commercial proposition ? Grant Edwards <invalid@invalid.invalid> - 2012-07-30 14:09 +0000
      Re: Is Python a commercial proposition ? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-07-31 02:06 +0000
        Re: Is Python a commercial proposition ? Paul Rubin <no.email@nospam.invalid> - 2012-07-30 21:45 -0700
          Re: Is Python a commercial proposition ? Stefan Behnel <stefan_ml@behnel.de> - 2012-07-31 07:27 +0200
          Re: Is Python a commercial proposition ? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-07-31 06:29 +0000
            Re: Is Python a commercial proposition ? Roy Smith <roy@panix.com> - 2012-07-31 08:04 -0400
  Re: Is Python a commercial proposition ? Chris Angelico <rosuav@gmail.com> - 2012-07-30 17:52 +1000
    Re: Is Python a commercial proposition ? Roy Smith <roy@panix.com> - 2012-07-30 09:06 -0400
      Re: Is Python a commercial proposition ? lipska the kat <lipska@yahoo.co.uk> - 2012-07-30 14:37 +0100
        Re: Is Python a commercial proposition ? David <bouncingcats@gmail.com> - 2012-07-31 23:52 +1000
          Re: Is Python a commercial proposition ? lipska the kat <lipska@yahoo.co.uk> - 2012-07-31 18:27 +0100
            Re: Is Python a commercial proposition ? David <bouncingcats@gmail.com> - 2012-08-01 09:31 +1000
            Re: Is Python a commercial proposition ? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-08-01 09:06 +0100
              Re: Is Python a commercial proposition ? lipska the kat <lipska@yahoo.co.uk> - 2012-08-01 09:15 +0100
                Re: Is Python a commercial proposition ? David <bouncingcats@gmail.com> - 2012-08-01 21:59 +1000
                Re: Is Python a commercial proposition ? Stefan Behnel <stefan_ml@behnel.de> - 2012-08-01 14:32 +0200
                Re: Is Python a commercial proposition ? David <bouncingcats@gmail.com> - 2012-08-02 13:10 +1000
                Re: Is Python a commercial proposition ? lipska the kat <lipskathekat@yahoo.co.uk> - 2012-08-02 09:17 +0100
                Re: Is Python a commercial proposition ? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-08-02 09:09 +0100
                RE: Is Python a commercial proposition ? "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-08-03 06:51 +0000
                Re: Is Python a commercial proposition ? Stefan Behnel <stefan_ml@behnel.de> - 2012-08-03 11:34 +0200
  Re: Is Python a commercial proposition ? Tim Chase <python.list@tim.thechases.com> - 2012-07-30 06:09 -0500
  Re: Is Python a commercial proposition ? rusi <rustompmody@gmail.com> - 2012-07-30 09:25 -0700
  Re: Is Python a commercial proposition ? Emile van Sebille <emile@fenx.com> - 2012-07-30 10:36 -0700
  RE: Is Python a commercial proposition ? "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-07-30 18:26 +0000
  Re: Is Python a commercial proposition ? Chris Withers <chris@python.org> - 2012-08-23 22:46 +0100
    Re: Is Python a commercial proposition ? lipska the kat <lipskathekat@yahoo.co.uk> - 2012-08-24 12:03 +0100

csiph-web