[Tutor] comment stripper script

Daniel Ehrenberg littledanehren at yahoo.com
Mon Jan 26 15:08:51 EST 2004


> for line in infile.xreadlines():
>     if not is_commented_line(line):
>         f.write(line)

You can leave out the .xreadlines(); it is implied as
of version 2.0

Daniel Ehrenberg

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/



More information about the Tutor mailing list