ConfigParser & converting strings to lists

Edward K. Ream edream at tds.net
Sat Jun 22 22:03:22 EDT 2002


> Actually, this works just fine,
> and the config file contains:
> 
> [recent files]
> recentFiles = [file1, file2, ...]
> 
> as expected.  However,

Correction.  Instead of

recentFiles = [file1, file2, ...]

the set method writes:

recentFiles = ['file1' 'file2' ...]

so it is strings of the form "['file1' 'file2' ...]" that must be
converted to a list of strings. The ellipses do not actually appear
anywhere, but I had to indicate "and so on" somehow.  Clear enough?

Edward
--------------------------------------------------------------------
Edward K. Ream   email:  edream at tds.net
Leo: Literate Editor with Outlines
Leo: http://personalpages.tds.net/~edream/front.html
--------------------------------------------------------------------



More information about the Python-list mailing list