|
From: Michael F. <fuz...@vo...> - 2009-07-17 14:23:32
|
David Hostetler wrote: > > How would validation work for non-string list specifications? > > I.e. -- what value should an empty entry be for an int_list? Ditto > for the other types (float, bool, etc..). > > I suppose an argument can be made to use None under these > circumstances. But then is it more or less intuitive for string lists > to use '' instead of None? > > Hmm... unfortunately that's a very good point. Perhaps an alternative set of validation functions that allow empty values and replace them with None. From a validation point of view either an empty entry is either acceptable or not depending on the use case. Michael > On Fri, Jul 17, 2009 at 08:31, Michael Foord > <fuz...@vo... <mailto:fuz...@vo...>> wrote: > > > Hmm... well on reflection it ought to either be a syntax error or come > in as empty string. I guess empty string makes most sense. I'm > doing an > update to ConfigObj soon to address a couple of issues and see if > I can > include this. > > Thanks > > Michael > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > 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/ http://www.voidspace.org.uk/blog |