where is the awk to python translator program

Alan Gauld alan.gauld at btinternet.com
Sat Jul 26 05:37:47 EDT 2003


On Sat, 26 Jul 2003 01:25:45 -0500, Skip Montanaro
<skip at pobox.com> wrote:

> Python doesn't have the implicit looping and splitting into fields that awk
> has, so you need to loop over the input and split the fields yourself:

Although the fileinput module does help out with a lot of that
kind of drudgery... certainly when you pass multiple filenames as
arguments etc.

But it still isn't awk.

Alan G
Author of the Learn to Program website
http://www.freenetpages.co.uk/hp/alan.gauld




More information about the Python-list mailing list