[Tutor] configparser -- suggestions on when "name: value" entries are incomplete

Iyer maseriyer at yahoo.com
Thu May 31 17:25:46 CEST 2007

Regarding the configparser module, if there is a
configuration file to be read that has incomplete
"name: value" entries, what would be the best way to
handle this situation ?

I was thinking of catching the exemption parsingerror
and deleting the sections that have incomplete
"name:value" entries, to delete the sections, the
configfile has to be read, right and that raises the
parsing error.

any suggestions on how to best handle this situation?


Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. 

More information about the Tutor mailing list