File: class/Workbook/Examples/Lecture5/commands.py

import string
from scanfile import scanner

def processLine(line):
    print string.upper(line)

scanner("data.txt", processLine)    # start scanner



[Home page] Books Code Blog Python Author Train Find ©M.Lutz