|
From: Arve K. <arv...@gm...> - 2007-08-22 21:34:04
|
On 8/22/07, Michael Foord <fuz...@vo...> wrote: > > Arve Knudsen wrote: > > Just checking if anything is being done about this issue? > > I'm afraid I haven't had a chance to look at this yet. :-( > > It is still 'on my list' though, and everything does get done > eventually... OK. Arve > > > Arve > > > > On 5/16/07, *Michael Foord* <ar...@vo... > > <mailto:ar...@vo...>> wrote: > > > > Nicola Larosa wrote: > > > Michael Foord wrote: > > > > > >>> I would like this behaviour, otherwise the validation should > > raise an > > >>> error instead of silently returning a string when a list was > > specified > > >>> in the validation schema. > > >>> > > > > > > > > >> Thanks Arve - I'll look at this. Anyone else have an opinion on > > the > > >> 'raise an error or coerce to list' question ? > > >> > > > > > > I don't need to remind you the timeless lesson of the ages > > before us: ;-) > > > > > > "Explicit is better than implicit. > > > ... > > > Errors should never pass silently. > > > Unless explicitly silenced. > > > In the face of ambiguity, refuse the temptation to guess." > > > > > > There is an ambiguity in *meaning* here, so definitely raise an > > error. > > > > > I'm still slightly reluctant, if the entry is meant to be a list > > then a > > single entry is valid and we're debating syntax. > > > > On the other hand there *is* a potential cause for confusion - so at > > least an error will signal where the problem is. I think this is > > probably the right thing to do. > > > > There is possibly also an issue with empty values and empty lists > > as well. > > > > I'll look into it. > > > > Michael > > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Configobj-develop mailing list > > Con...@li... > > <mailto:Con...@li...> > > https://lists.sourceforge.net/lists/listinfo/configobj-develop > > > > > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Configobj-develop mailing list > > Con...@li... > > https://lists.sourceforge.net/lists/listinfo/configobj-develop > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Configobj-develop mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/configobj-develop > |