Ignoring comments - Parsing input file

Doug Fort doug.fort at verizon.net
Sat Oct 12 07:18:56 EDT 2002


On Sat, 12 Oct 2002 09:46:24 +0100, Simon Faulkner wrote:

> I am writing a script which reads it's input from a text file
> 
> What is the easiest way to make it ignore lines that start with # or
> blank lines?
> 
> 
> Simon

I recommend Dr. David Mertz's book "Text Processing in Python". It's
available online at http://gnosis.cx/TPiP 

-- 
Doug Fort, Programmer
http:/www.dougfort.net




More information about the Python-list mailing list