ConfigParser & converting strings to lists
Edward K. Ream
edream at tds.net
Sun Jun 23 06:05:17 EDT 2002
JohnJacob wrote:
> You just want to get your list back from it's string representaion, right?
> Try eval:
>
> files = eval(config.get("recent files", "recentFiles"))
Brilliant! As Paul Erdos would say, this is the way it is written in
"The Book". Thank you!
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