Hello all, I am using the configobj package to handle a ridiculously simple ini file, which takes the form: [favorites] "search name" = "search terms", "search type"
for any number of searches stored in the favorites section. I need the search type, term, and name to be read in as strings, but they will usually contain spaces, which is why I put them in quotes. Here is the question: when I try to add a search to the ini file, I cannot get the quotes to show up correctly. I just want my three strings enclosed in single or double quotes, but I cannot manage to do it. I either get no quotes, or, when I manually add them (such as "\""+searchTerms+"\"" and so on), I get strings surrounded by both double and single quotes. All documentation for configobj talks about using quotes so that keys and values will be read correctly, yet programmitically writing these quotes is proving very difficult. I am not sure if this is a python thing or a configobj thing, but it seems like it would be a relatively simple task. Is there a simple function I do not know about that will let me do this? Thanks. -- Have a great day, Alex (msg sent from GMail website) mehg...@gmail.com; http://www.facebook.com/mehgcap _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor