python vs perl lines of code

Edward Elliott nobody at
Wed May 17 07:31:53 CEST 2006

Ala Qumsieh wrote:

> Btw, do you include space chars that go toward indentating Python code
> in your count? If not, you should since they are required. Not so for
> Perl.

All chars are counted on lines which are counted.  The perl and python
versions use the same amount and type of indentation, which in this case is
tab characters.  In any case, I wouldn't strip the whitespace out of the
perl code just because it's unnecessary for the interpreter.  How people
deal with code is far more interesting than how machines do, and for us
whitespace is necessary (not strictly, but a really really good idea).

Edward Elliott
UC Berkeley School of Law (Boalt Hall)
complangpython at eddeye dot net

More information about the Python-list mailing list