|
From: Michael F. <fuz...@vo...> - 2009-07-17 09:52:48
|
Cameron Stone wrote: > I just found this very handy library, and I'm loving it. > > I'm using sections with options containing values that are > comma-separated lists. These lists are meant to have 4 values, some of > which can be empty. > > I have 2 questions: > > 1) I found the list_values parameter to turn off auto-conversion to > list, because it was filtering out the empty entries (and returning > lists with less than 4 entries). Is it possible to configure ConfigObj > to leave the empty entries in the list? > What do you mean by 'empty entries'? > 2) If the list has an error I'd like to report the line number of the > configuration file. Unfortunately this seems to be only available if > ConfigObj has a parse error. Is there some way I can retrieve (or > reconstruct) the line number corresponding to a key-value pair? > > There is no API for fetching line numbers of entries with ConfigObj I'm afraid. All the best, Michael Foord > Thanks, > Cameron. > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Configobj-develop mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/configobj-develop > -- http://www.ironpythoninaction.com/ |