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 ?)

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'python': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'languages.': 0.15; '(mainly': 0.16; 'from:addr:behnel.de': 0.16; 'from:addr:stefan_ml': 0.16; 'from:name:stefan behnel': 0.16; 'html)': 0.16; 'ignores': 0.16; 'java.': 0.16; 'message- id:@dough.gmane.org': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'stefan': 0.17; 'code.': 0.20; 'fairly': 0.21; 'java': 0.21; 'properties': 0.24; 'script': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'tree': 0.27; 'interface': 0.27; "doesn't": 0.28; 'header:X-Complaints- To:1': 0.28; 'lines': 0.28; 'this?': 0.28; 'whitespace': 0.29; 'included': 0.29; 'source': 0.29; "i'm": 0.29; 'received:84': 0.32; 'comments': 0.33; 'to:addr:python-list': 0.33; 'project': 0.34; 'received:org': 0.36; 'tool': 0.36; 'subject: (': 0.36; 'subject:: ': 0.38; 'files': 0.38; 'comment': 0.38; 'easier': 0.38; 'fact': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'easy': 0.60; 'most': 0.61; 'containing': 0.61; 'counts': 0.81; 'received:arcor-ip.net': 0.84; 'received:pools.arcor-ip.net': 0.84; 'subject:proposition': 0.84; 'subject:source': 0.84; 'you).': 0.95
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Stefan Behnel <stefan_ml@behnel.de>
Subject counting source lines (was: Is Python a commercial proposition ?)
Date Sun, 29 Jul 2012 19:49:51 +0200
References <HridnVeRSpKgw4jNnZ2dnUVZ8nidnZ2d@bt.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host dslb-084-056-052-116.pools.arcor-ip.net
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0
In-Reply-To <HridnVeRSpKgw4jNnZ2dnUVZ8nidnZ2d@bt.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2697.1343584207.4697.python-list@python.org> (permalink)
Lines 16
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1343584207 news.xs4all.nl 6927 [2001:888:2000:d::a6]:60661
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:26203

Show key headers only | 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