Hi Guys

I am wondering if there is a keyword to ignore certain lines ( for eg
lines starting with # ) when I am reading them through stl module csv.

Example code:

input_file = sys.argv[1]
csv.register_dialect('multiplex_info',delimiter=' ')

with open(input_file, 'rb') as fh:
    reader= csv.reader(fh,'multiplex_info')
    for row in reader:
        print row


best,
-Abhi
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to