Python vs. Perl, which is better to learn?

Alex Martelli aleax at aleax.it
Wed May 1 05:22:35 EDT 2002


Terry Hancock wrote:
        ...
> tasks in nicely compact ways (such as the "process
> all lines in all files mentioned on the command line,
> or failing that, all the lines coming from stdin",
> which is basically what "<>" means).  Basically, it

Python's equivalent, "for line in fileinput.input():",
seems quite good to me -- just one more case of:

>> The "Perl thing" tends to be shorter, while the "Python
>> thing" tends to be more readable.


Alex




More information about the Python-list mailing list