Long Live Python!

Tom Jenkins tjenkins at devis.com
Wed Jul 11 14:53:26 EDT 2001

Bruce Sass wrote:

> On Wed, 11 Jul 2001, phil hunt wrote:
>>On Tue, 10 Jul 2001 15:31:11 -0700, Paul Prescod <paulp at ActiveState.com> wrote:
> <...>
>>>Python does not have a niche and is not obviously a niche-friendly
>>Sure it does: python's niche is as a scripting language that's also good
>>for longer programs.
> Hehe, you must have missed the recent thread about removing the first
> line from a text file... I thought it showed that Python is a horrible
> scripting language, way too verbose, it turned what should be a few
> lines of script into a program.

Ummmm... how was (from Alex Martelli) this script:
def allbutone_2(filename):
    import fileinput
    for line in fileinput.input(filename,inplace=1,backup='.sav'):
       if fileinput.filelineno() > 1: print line,

too verbose, too many lines <wink>?  You should see a java version <grin>!

btw, thanks for bringing that thread up; I never noticed the fileinput 
module.  Yet another module to investigate <grin>

> i.e.,  Python is good at turning what would be "longer programs"
>        in most other languages, into scripts.

Now-*this*-I-totally-agree-with-ly yours <wink>

Tom Jenkins
devIS - Development Infostructure

More information about the Python-list mailing list